home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / MacOS 8 Resources / Developer Tools / Mac OS 8 Interfaces & Libraries / Interfaces / CIncludes / HIImagingObjects.xh < prev    next >
Text File  |  1996-05-01  |  96KB  |  3,256 lines

  1.  
  2. /*
  3.  * This file was generated by the SOM Compiler.
  4.  * FileName: HIImagingObjects.xh.
  5.  * Generated using:
  6.  *     SOM Precompiler somipc: 2.18
  7.  *     SOM Emitter emitxh.dll: 2.33
  8.  */
  9.  
  10. #ifndef SOM_HIImagingObject_xh
  11. #define SOM_HIImagingObject_xh
  12.  
  13. class HIImagingObject;
  14.  
  15. #define HIImagingObject_MajorVersion 0
  16. #define HIImagingObject_MinorVersion 0
  17.  
  18. /*
  19.  * Passthru lines: File: "C.xh", "before"
  20.  */
  21. #include <Collections.h>
  22. #include <Quickdraw.h>
  23. #include <TextEdit.h>
  24. #include <TextObjects.h>
  25. #include <Types.h>
  26. #include <Resources.h>
  27. #include <HIObjectTypes.h>
  28. #include <HIImagingObjectTypes.h>
  29.  
  30. /* C++ SOM defs */
  31. #include <somcls.xh>
  32. #include <somcm.xh>
  33.  
  34. /* C++ parent defs */
  35. #ifndef SOM_SOMObject_xh
  36. #include <somobj.xh>
  37. #endif
  38.  
  39. #ifndef HIImagingObject_API
  40. #define HIImagingObject_API
  41. /*
  42.  * -- The Class API
  43.  */
  44.  
  45. /*
  46.  * Start of user-defined types:
  47.  */
  48. class SOMClass;
  49. class SOMObject;
  50.  
  51. /*
  52.  * End of user-defined types.
  53.  */
  54.  
  55. #ifdef OLDIBMSOMAPISUPPORT
  56. #define HIImagingObjectCClassData HIImagingObjectClassData
  57. #define HIImagingObjectNewClass(major,minor) somNewVersionedClassReference(HIImagingObject,major,minor)
  58. #endif
  59.  
  60. /* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
  61. #define HIImagingObjectMetaClass SOMClass
  62.  
  63. #if PRAGMA_ALIGN_SUPPORTED
  64. #  pragma options align=power
  65. #endif
  66.  
  67. /* The API to the HIImagingObject class object, and the methods it introduces. */
  68. SOMEXTERN struct HIImagingObjectClassDataStructure {
  69. #ifdef OLDIBMSOMAPISUPPORT
  70.     SOMClass            *classObject;    /* always zero, use somNewClassReference instead */
  71. #else
  72.     long zero;
  73. #endif
  74.     somStaticClassInfo *sci;
  75.     somDToken        instanceDataToken;
  76.     long reserved [3];
  77.     somMToken NewImage;
  78.     somMToken DisposeImage;
  79.     somMToken InitFromAERecord;
  80.     somMToken WriteToAERecord;
  81.     somMethodProc *GetImageType;
  82.     somMToken MeasureImage;
  83.     somMToken DrawImage;
  84.     somMethodProc *GetHIImagingObject;
  85.     somMToken GetNewImage;
  86.     somMethodProc *GetNewImageFromResource;
  87.     somMToken CloneImage;
  88.     somMToken ReleaseImage;
  89.     somMToken GetImageOwnerCount;
  90. } SOMDLINK HIImagingObjectClassData;
  91.  
  92. #if PRAGMA_ALIGN_SUPPORTED
  93. #  pragma options align=reset
  94. #endif
  95.  
  96. #if !defined(HIImagingObject_Class_Source) && !defined(SOM_Module_hiimagingobjects_Source)
  97. #if PRAGMA_IMPORT_SUPPORTED
  98. #pragma import list HIImagingObjectClassData
  99. #endif
  100. #endif
  101.  
  102.  
  103. /*
  104.  * -- Typedefs for HIImagingObject Method Procedures
  105.  */
  106. SOMEXTERN {
  107. typedef OSStatus   (* SOMLINK somTD_HIImagingObject_NewImage)(HIImagingObject *somSelf, Environment *ev,
  108.         HIImageRef* imageRefPtr);
  109. typedef OSStatus   (* SOMLINK somTD_HIImagingObject_GetNewImage)(HIImagingObject *somSelf, Environment *ev,
  110.         AESubDesc* initializer,
  111.         HIImageRef* imageRefPtr);
  112. typedef HIImageRef   (* SOMLINK somTD_HIImagingObject_CloneImage)(HIImagingObject *somSelf, Environment *ev,
  113.         HIImageRef imageRef);
  114. typedef OSStatus   (* SOMLINK somTD_HIImagingObject_ReleaseImage)(HIImagingObject *somSelf, Environment *ev,
  115.         HIImageRef imageRef);
  116. typedef ItemCount   (* SOMLINK somTD_HIImagingObject_GetImageOwnerCount)(HIImagingObject *somSelf, Environment *ev,
  117.         ConstHIImageRef imageRef);
  118. typedef OSStatus   (* SOMLINK somTD_HIImagingObject_InitFromAERecord)(HIImagingObject *somSelf, Environment *ev,
  119.         HIImageRef imageRef,
  120.         AESubDesc* dataForBaseClass,
  121.         AESubDesc* dataForClass,
  122.         HIAERecordDataFormat dataFormat);
  123. typedef OSStatus   (* SOMLINK somTD_HIImagingObject_WriteToAERecord)(HIImagingObject *somSelf, Environment *ev,
  124.         ConstHIImageRef imageRef,
  125.         AERecord* dataForSubclass,
  126.         AERecord* dataForClass,
  127.         HIAERecordDataFormat dataFormat);
  128. typedef OSStatus   (* SOMLINK somTD_HIImagingObject_MeasureImage)(HIImagingObject *somSelf, Environment *ev,
  129.         ConstHIImageRef imageRef,
  130.         CGrafPtr port,
  131.         UInt32* widthPtr,
  132.         UInt32* heightPtr,
  133.         HIImageOptions measureOptions);
  134. typedef OSStatus   (* SOMLINK somTD_HIImagingObject_DrawImage)(HIImagingObject *somSelf, Environment *ev,
  135.         ConstHIImageRef imageRef,
  136.         CGrafPtr port,
  137.         Rect* contentRect,
  138.         Rect* frameRect,
  139.         HIImageOptions drawOptions);
  140. typedef OSStatus   (* SOMLINK somTD_HIImagingObject_DisposeImage)(HIImagingObject *somSelf, Environment *ev,
  141.         HIImageRef imageRef);
  142. typedef HIImagingObject*   (* SOMLINK somTD_HIImagingObject_GetHIImagingObject)(Environment *ev,
  143.         HIImageType imageType);
  144. typedef HIImageType   (* SOMLINK somTD_HIImagingObject_GetImageType)(Environment *ev,
  145.         ConstHIImageRef imageRef);
  146. typedef OSStatus   (* SOMLINK somTD_HIImagingObject_GetNewImageFromResource)(Environment *ev,
  147.         ResID objectInitializerResourceID,
  148.         HIImageRef* imageRefPtr);
  149.  
  150. /*
  151.  * -- Typedefs for Inherited Methods
  152.  */
  153. typedef void   (* SOMLINK somTD_HIImagingObject_somInit)(HIImagingObject *somSelf);
  154. typedef void   (* SOMLINK somTD_HIImagingObject_somUninit)(HIImagingObject *somSelf);
  155. typedef SOMObject*   (* SOMLINK somTD_HIImagingObject_somDuplicateReference)(HIImagingObject *somSelf);
  156. typedef boolean   (* SOMLINK somTD_HIImagingObject_somCompareReference)(HIImagingObject *somSelf,
  157.         SOMObject* anObject);
  158. typedef SOMObject*   (* SOMLINK somTD_HIImagingObject_somRelease)(HIImagingObject *somSelf);
  159. typedef void   (* SOMLINK somTD_HIImagingObject_somFree)(HIImagingObject *somSelf);
  160. typedef boolean   (* SOMLINK somTD_HIImagingObject_somCanDelete)(HIImagingObject *somSelf);
  161. typedef SOMClass*   (* SOMLINK somTD_HIImagingObject_somGetClass)(HIImagingObject *somSelf);
  162. typedef corbastring   (* SOMLINK somTD_HIImagingObject_somGetClassName)(HIImagingObject *somSelf);
  163. typedef long   (* SOMLINK somTD_HIImagingObject_somGetSize)(HIImagingObject *somSelf);
  164. typedef boolean   (* SOMLINK somTD_HIImagingObject_somIsA)(HIImagingObject *somSelf,
  165.         SOMClass* aClassObj);
  166. typedef boolean   (* SOMLINK somTD_HIImagingObject_somRespondsTo)(HIImagingObject *somSelf,
  167.         somId mId);
  168. typedef boolean   (* SOMLINK somTD_HIImagingObject_somIsInstanceOf)(HIImagingObject *somSelf,
  169.         SOMClass* aClassObj);
  170. typedef boolean   (* SOMLINK somTD_HIImagingObject_somDispatch)(HIImagingObject *somSelf,
  171.         somToken* retValue,
  172.         somId methodId,
  173.         va_list ap);
  174. typedef boolean   (* SOMLINK somTD_HIImagingObject_somClassDispatch)(HIImagingObject *somSelf,
  175.         SOMClass* clsObj,
  176.         somToken* retValue,
  177.         somId methodId,
  178.         va_list ap);
  179. typedef boolean   (* SOMLINK somTD_HIImagingObject_somCastObj)(HIImagingObject *somSelf,
  180.         SOMClass* cls);
  181. typedef boolean   (* SOMLINK somTD_HIImagingObject_somResetObj)(HIImagingObject *somSelf);
  182. typedef SOMObject*   (* SOMLINK somTD_HIImagingObject_somPrintSelf)(HIImagingObject *somSelf);
  183. typedef void   (* SOMLINK somTD_HIImagingObject_somDumpSelf)(HIImagingObject *somSelf,
  184.         long level);
  185. typedef void   (* SOMLINK somTD_HIImagingObject_somDumpSelfInt)(HIImagingObject *somSelf,
  186.         long level);
  187. }
  188.  
  189. #endif /* HIImagingObject_API */
  190.  
  191.  
  192. /*
  193.  * -- This emitter treats Method Tokens as Thunks by default.
  194.  * -- Use the sc modifier "nothunks" to change this default
  195.  */
  196. #undef somresolve_
  197. #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
  198.  
  199. /*
  200.  * -- The C++ Wrapper Class for HIImagingObject
  201.  */
  202. class HIImagingObject : public SOMObject
  203. {
  204. public:
  205.  
  206. // HIImagingObject::new registers use of the class object, and then uses somNew
  207. // to allocate memory and load the object method table pointer. 
  208. void *operator new(size_t size)
  209. {
  210.     SOM_IgnoreWarning(size);
  211.     // Allocate memory using the default allocator for HIImagingObject, and
  212.     // clear mem & set method table pointer, call basic initialization
  213.     return (void*) somNewObject(HIImagingObject);
  214. }
  215.  
  216. // HIImagingObject::delete uses the default deallocator for the object's class.
  217. void operator delete(void * obj)
  218. {
  219.     if (obj) {
  220.         SOM_Resolve(obj,SOMObject,somFree)
  221.            ( (SOMObject*) obj );
  222.     }
  223. }
  224.  
  225. /* method: NewImage */
  226. OSStatus   NewImage(Environment *ev,
  227.         HIImageRef* imageRefPtr)
  228. {
  229.    return SOM_ResolveD(this,HIImagingObject,HIImagingObject,NewImage)
  230.     (this,ev,imageRefPtr);
  231. }
  232.  
  233. /* method: GetNewImage */
  234. OSStatus   GetNewImage(Environment *ev,
  235.         AESubDesc* initializer,
  236.         HIImageRef* imageRefPtr)
  237. {
  238.    return SOM_ResolveD(this,HIImagingObject,HIImagingObject,GetNewImage)
  239.     (this,ev,initializer,imageRefPtr);
  240. }
  241.  
  242. /* method: CloneImage */
  243. HIImageRef   CloneImage(Environment *ev,
  244.         HIImageRef imageRef)
  245. {
  246.    return SOM_ResolveD(this,HIImagingObject,HIImagingObject,CloneImage)
  247.     (this,ev,imageRef);
  248. }
  249.  
  250. /* method: ReleaseImage */
  251. OSStatus   ReleaseImage(Environment *ev,
  252.         HIImageRef imageRef)
  253. {
  254.    return SOM_ResolveD(this,HIImagingObject,HIImagingObject,ReleaseImage)
  255.     (this,ev,imageRef);
  256. }
  257.  
  258. /* method: GetImageOwnerCount */
  259. ItemCount   GetImageOwnerCount(Environment *ev,
  260.         ConstHIImageRef imageRef)
  261. {
  262.    return SOM_ResolveD(this,HIImagingObject,HIImagingObject,GetImageOwnerCount)
  263.     (this,ev,imageRef);
  264. }
  265.  
  266. /* method: InitFromAERecord */
  267. OSStatus   InitFromAERecord(Environment *ev,
  268.         HIImageRef imageRef,
  269.         AESubDesc* dataForBaseClass,
  270.         AESubDesc* dataForClass,
  271.         HIAERecordDataFormat dataFormat)
  272. {
  273.    return SOM_ResolveD(this,HIImagingObject,HIImagingObject,InitFromAERecord)
  274.     (this,ev,imageRef,dataForBaseClass,dataForClass,dataFormat);
  275. }
  276.  
  277. /* method: WriteToAERecord */
  278. OSStatus   WriteToAERecord(Environment *ev,
  279.         ConstHIImageRef imageRef,
  280.         AERecord* dataForSubclass,
  281.         AERecord* dataForClass,
  282.         HIAERecordDataFormat dataFormat)
  283. {
  284.    return SOM_ResolveD(this,HIImagingObject,HIImagingObject,WriteToAERecord)
  285.     (this,ev,imageRef,dataForSubclass,dataForClass,dataFormat);
  286. }
  287.  
  288. /* method: MeasureImage */
  289. OSStatus   MeasureImage(Environment *ev,
  290.         ConstHIImageRef imageRef,
  291.         CGrafPtr port,
  292.         UInt32* widthPtr,
  293.         UInt32* heightPtr,
  294.         HIImageOptions measureOptions)
  295. {
  296.    return SOM_ResolveD(this,HIImagingObject,HIImagingObject,MeasureImage)
  297.     (this,ev,imageRef,port,widthPtr,heightPtr,measureOptions);
  298. }
  299.  
  300. /* method: DrawImage */
  301. OSStatus   DrawImage(Environment *ev,
  302.         ConstHIImageRef imageRef,
  303.         CGrafPtr port,
  304.         Rect* contentRect,
  305.         Rect* frameRect,
  306.         HIImageOptions drawOptions)
  307. {
  308.    return SOM_ResolveD(this,HIImagingObject,HIImagingObject,DrawImage)
  309.     (this,ev,imageRef,port,contentRect,frameRect,drawOptions);
  310. }
  311.  
  312. /* method: DisposeImage */
  313. OSStatus   DisposeImage(Environment *ev,
  314.         HIImageRef imageRef)
  315. {
  316.    return SOM_ResolveD(this,HIImagingObject,HIImagingObject,DisposeImage)
  317.     (this,ev,imageRef);
  318. }
  319.  
  320. /* noself procedure: GetHIImagingObject */
  321. static HIImagingObject*   GetHIImagingObject(Environment *ev,
  322.         HIImageType imageType)
  323. {
  324. return ((somTD_HIImagingObject_GetHIImagingObject)HIImagingObjectClassData.GetHIImagingObject)
  325.     (ev,imageType);
  326. }
  327.  
  328. /* noself procedure: GetImageType */
  329. static HIImageType   GetImageType(Environment *ev,
  330.         ConstHIImageRef imageRef)
  331. {
  332. return ((somTD_HIImagingObject_GetImageType)HIImagingObjectClassData.GetImageType)
  333.     (ev,imageRef);
  334. }
  335.  
  336. /* noself procedure: GetNewImageFromResource */
  337. static OSStatus   GetNewImageFromResource(Environment *ev,
  338.         ResID objectInitializerResourceID,
  339.         HIImageRef* imageRefPtr)
  340. {
  341. return ((somTD_HIImagingObject_GetNewImageFromResource)HIImagingObjectClassData.GetNewImageFromResource)
  342.     (ev,objectInitializerResourceID,imageRefPtr);
  343. }
  344.  
  345.  
  346. /*
  347.  * -- Inherited methods
  348.  */
  349. /* method: somInit */
  350. void   somInit()
  351. {
  352.    SOM_ResolveD(this,HIImagingObject,SOMObject,somInit)
  353.     (this);
  354. }
  355.  
  356. /* method: somUninit */
  357. void   somUninit()
  358. {
  359.    SOM_ResolveD(this,HIImagingObject,SOMObject,somUninit)
  360.     (this);
  361. }
  362.  
  363. /* method: somDuplicateReference */
  364. SOMObject*   somDuplicateReference()
  365. {
  366.    return SOM_ResolveD(this,HIImagingObject,SOMObject,somDuplicateReference)
  367.     (this);
  368. }
  369.  
  370. /* method: somCompareReference */
  371. boolean   somCompareReference(SOMObject* anObject)
  372. {
  373.    return SOM_ResolveD(this,HIImagingObject,SOMObject,somCompareReference)
  374.     (this,anObject);
  375. }
  376.  
  377. /* method: somRelease */
  378. SOMObject*   somRelease()
  379. {
  380.    return SOM_ResolveD(this,HIImagingObject,SOMObject,somRelease)
  381.     (this);
  382. }
  383.  
  384. /* method: somFree */
  385. void   somFree()
  386. {
  387.    SOM_ResolveD(this,HIImagingObject,SOMObject,somFree)
  388.     (this);
  389. }
  390.  
  391. /* method: somCanDelete */
  392. boolean   somCanDelete()
  393. {
  394.    return SOM_ResolveD(this,HIImagingObject,SOMObject,somCanDelete)
  395.     (this);
  396. }
  397.  
  398. /* method: somGetClass */
  399. SOMClass*   somGetClass()
  400. {
  401.    return SOM_ResolveD(this,HIImagingObject,SOMObject,somGetClass)
  402.     (this);
  403. }
  404.  
  405. /* method: somGetClassName */
  406. corbastring   somGetClassName()
  407. {
  408.    return SOM_ResolveD(this,HIImagingObject,SOMObject,somGetClassName)
  409.     (this);
  410. }
  411.  
  412. /* method: somGetSize */
  413. long   somGetSize()
  414. {
  415.    return SOM_ResolveD(this,HIImagingObject,SOMObject,somGetSize)
  416.     (this);
  417. }
  418.  
  419. /* method: somIsA */
  420. boolean   somIsA(SOMClass* aClassObj)
  421. {
  422.    return SOM_ResolveD(this,HIImagingObject,SOMObject,somIsA)
  423.     (this,aClassObj);
  424. }
  425.  
  426. /* method: somRespondsTo */
  427. boolean   somRespondsTo(somId mId)
  428. {
  429.    return SOM_ResolveD(this,HIImagingObject,SOMObject,somRespondsTo)
  430.     (this,mId);
  431. }
  432.  
  433. /* method: somIsInstanceOf */
  434. boolean   somIsInstanceOf(SOMClass* aClassObj)
  435. {
  436.    return SOM_ResolveD(this,HIImagingObject,SOMObject,somIsInstanceOf)
  437.     (this,aClassObj);
  438. }
  439.  
  440. /* va_list method: somDispatch */
  441. /* the va_list invocation form */
  442. boolean   HIImagingObject_somDispatch(somToken* retValue,
  443.         somId methodId,
  444.         va_list ap)
  445. {
  446.    return SOM_ResolveD(this,HIImagingObject,SOMObject,somDispatch)
  447.     (this,retValue,methodId,ap);
  448. }
  449.  
  450. /* the varargs invocation form */
  451. boolean   somDispatch(somToken* retValue,
  452.         somId methodId,
  453.         ...)
  454. {
  455.    va_list ap;
  456.    va_start(ap, methodId);
  457.       boolean __somResult = 
  458.       (boolean) SOM_ResolveD(this,HIImagingObject,SOMObject,somDispatch)
  459.     (this,retValue,methodId,ap);
  460.    va_end(ap);
  461.    return __somResult;
  462. }
  463.  
  464. /* va_list method: somClassDispatch */
  465. /* the va_list invocation form */
  466. boolean   HIImagingObject_somClassDispatch(SOMClass* clsObj,
  467.         somToken* retValue,
  468.         somId methodId,
  469.         va_list ap)
  470. {
  471.    return SOM_ResolveD(this,HIImagingObject,SOMObject,somClassDispatch)
  472.     (this,clsObj,retValue,methodId,ap);
  473. }
  474.  
  475. /* the varargs invocation form */
  476. boolean   somClassDispatch(SOMClass* clsObj,
  477.         somToken* retValue,
  478.         somId methodId,
  479.         ...)
  480. {
  481.    va_list ap;
  482.    va_start(ap, methodId);
  483.       boolean __somResult = 
  484.       (boolean) SOM_ResolveD(this,HIImagingObject,SOMObject,somClassDispatch)
  485.     (this,clsObj,retValue,methodId,ap);
  486.    va_end(ap);
  487.    return __somResult;
  488. }
  489.  
  490. /* method: somCastObj */
  491. boolean   somCastObj(SOMClass* cls)
  492. {
  493.    return SOM_ResolveD(this,HIImagingObject,SOMObject,somCastObj)
  494.     (this,cls);
  495. }
  496.  
  497. /* method: somResetObj */
  498. boolean   somResetObj()
  499. {
  500.    return SOM_ResolveD(this,HIImagingObject,SOMObject,somResetObj)
  501.     (this);
  502. }
  503.  
  504. /* method: somPrintSelf */
  505. SOMObject*   somPrintSelf()
  506. {
  507.    return SOM_ResolveD(this,HIImagingObject,SOMObject,somPrintSelf)
  508.     (this);
  509. }
  510.  
  511. /* method: somDumpSelf */
  512. void   somDumpSelf(long level)
  513. {
  514.    SOM_ResolveD(this,HIImagingObject,SOMObject,somDumpSelf)
  515.     (this,level);
  516. }
  517.  
  518. /* method: somDumpSelfInt */
  519. void   somDumpSelfInt(long level)
  520. {
  521.    SOM_ResolveD(this,HIImagingObject,SOMObject,somDumpSelfInt)
  522.     (this,level);
  523. }
  524.  
  525. };   /* HIImagingObject */
  526.  
  527.  
  528.  
  529. #endif       /* SOM_HIImagingObject_xh */
  530.  
  531. #ifndef SOM_HICompositeImagingObject_xh
  532. #define SOM_HICompositeImagingObject_xh
  533.  
  534. class HICompositeImagingObject;
  535.  
  536. #define HICompositeImagingObject_MajorVersion 0
  537. #define HICompositeImagingObject_MinorVersion 0
  538.  
  539. /* C++ SOM defs */
  540. #include <somcls.xh>
  541. #include <somcm.xh>
  542.  
  543. /* C++ parent defs */
  544. #ifndef SOM_HIImagingObject_xh
  545. #include <HIImagingObjects.xh>
  546. #endif
  547.  
  548. #ifndef HICompositeImagingObject_API
  549. #define HICompositeImagingObject_API
  550. /*
  551.  * -- The Class API
  552.  */
  553.  
  554. /*
  555.  * Start of user-defined types:
  556.  */
  557.  
  558. /*
  559.  * End of user-defined types.
  560.  */
  561.  
  562. #ifdef OLDIBMSOMAPISUPPORT
  563. #define HICompositeImagingObjectCClassData HICompositeImagingObjectClassData
  564. #define HICompositeImagingObjectNewClass(major,minor) somNewVersionedClassReference(HICompositeImagingObject,major,minor)
  565. #endif
  566.  
  567. /* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
  568. #define HICompositeImagingObjectMetaClass SOMClass
  569.  
  570. #if PRAGMA_ALIGN_SUPPORTED
  571. #  pragma options align=power
  572. #endif
  573.  
  574. /* The API to the HICompositeImagingObject class object, and the methods it introduces. */
  575. SOMEXTERN struct HICompositeImagingObjectClassDataStructure {
  576. #ifdef OLDIBMSOMAPISUPPORT
  577.     SOMClass            *classObject;    /* always zero, use somNewClassReference instead */
  578. #else
  579.     long zero;
  580. #endif
  581.     somStaticClassInfo *sci;
  582.     somDToken        instanceDataToken;
  583.     long reserved [3];
  584.     somMToken SetImageSize;
  585.     somMToken AddSubImages;
  586.     somMToken SetSubImage;
  587.     somMToken GetSubImage;
  588.     somMToken GetSubImageCount;
  589. } SOMDLINK HICompositeImagingObjectClassData;
  590.  
  591. #if PRAGMA_ALIGN_SUPPORTED
  592. #  pragma options align=reset
  593. #endif
  594.  
  595. #if !defined(HICompositeImagingObject_Class_Source) && !defined(SOM_Module_hiimagingobjects_Source)
  596. #if PRAGMA_IMPORT_SUPPORTED
  597. #pragma import list HICompositeImagingObjectClassData
  598. #endif
  599. #endif
  600.  
  601.  
  602. /*
  603.  * -- Typedefs for HICompositeImagingObject Method Procedures
  604.  */
  605. SOMEXTERN {
  606. typedef OSStatus   (* SOMLINK somTD_HICompositeImagingObject_SetImageSize)(HICompositeImagingObject *somSelf, Environment *ev,
  607.         HIImageRef imageRef,
  608.         UInt16 width,
  609.         UInt16 height);
  610. typedef OSStatus   (* SOMLINK somTD_HICompositeImagingObject_AddSubImages)(HICompositeImagingObject *somSelf, Environment *ev,
  611.         HIImageRef imageRef,
  612.         UInt32 index,
  613.         UInt32 count);
  614. typedef OSStatus   (* SOMLINK somTD_HICompositeImagingObject_SetSubImage)(HICompositeImagingObject *somSelf, Environment *ev,
  615.         HIImageRef imageRef,
  616.         UInt32 index,
  617.         ConstHIImageRef subHIImageRef,
  618.         Rect* subImageRect,
  619.         HIImageOptions options);
  620. typedef OSStatus   (* SOMLINK somTD_HICompositeImagingObject_GetSubImage)(HICompositeImagingObject *somSelf, Environment *ev,
  621.         ConstHIImageRef imageRef,
  622.         UInt32 index,
  623.         HIImageRef* subHIImageRefPtr,
  624.         Rect* subImageRect,
  625.         HIImageOptions* options);
  626. typedef UInt32   (* SOMLINK somTD_HICompositeImagingObject_GetSubImageCount)(HICompositeImagingObject *somSelf, Environment *ev,
  627.         ConstHIImageRef imageRef);
  628.  
  629. /*
  630.  * -- Typedefs for Inherited Methods
  631.  */
  632. typedef OSStatus   (* SOMLINK somTD_HICompositeImagingObject_NewImage)(HICompositeImagingObject *somSelf, Environment *ev,
  633.         HIImageRef* imageRefPtr);
  634. typedef OSStatus   (* SOMLINK somTD_HICompositeImagingObject_GetNewImage)(HICompositeImagingObject *somSelf, Environment *ev,
  635.         AESubDesc* initializer,
  636.         HIImageRef* imageRefPtr);
  637. typedef HIImageRef   (* SOMLINK somTD_HICompositeImagingObject_CloneImage)(HICompositeImagingObject *somSelf, Environment *ev,
  638.         HIImageRef imageRef);
  639. typedef OSStatus   (* SOMLINK somTD_HICompositeImagingObject_ReleaseImage)(HICompositeImagingObject *somSelf, Environment *ev,
  640.         HIImageRef imageRef);
  641. typedef ItemCount   (* SOMLINK somTD_HICompositeImagingObject_GetImageOwnerCount)(HICompositeImagingObject *somSelf, Environment *ev,
  642.         ConstHIImageRef imageRef);
  643. typedef OSStatus   (* SOMLINK somTD_HICompositeImagingObject_InitFromAERecord)(HICompositeImagingObject *somSelf, Environment *ev,
  644.         HIImageRef imageRef,
  645.         AESubDesc* dataForBaseClass,
  646.         AESubDesc* dataForClass,
  647.         HIAERecordDataFormat dataFormat);
  648. typedef OSStatus   (* SOMLINK somTD_HICompositeImagingObject_WriteToAERecord)(HICompositeImagingObject *somSelf, Environment *ev,
  649.         ConstHIImageRef imageRef,
  650.         AERecord* dataForSubclass,
  651.         AERecord* dataForClass,
  652.         HIAERecordDataFormat dataFormat);
  653. typedef OSStatus   (* SOMLINK somTD_HICompositeImagingObject_MeasureImage)(HICompositeImagingObject *somSelf, Environment *ev,
  654.         ConstHIImageRef imageRef,
  655.         CGrafPtr port,
  656.         UInt32* widthPtr,
  657.         UInt32* heightPtr,
  658.         HIImageOptions measureOptions);
  659. typedef OSStatus   (* SOMLINK somTD_HICompositeImagingObject_DrawImage)(HICompositeImagingObject *somSelf, Environment *ev,
  660.         ConstHIImageRef imageRef,
  661.         CGrafPtr port,
  662.         Rect* contentRect,
  663.         Rect* frameRect,
  664.         HIImageOptions drawOptions);
  665. typedef OSStatus   (* SOMLINK somTD_HICompositeImagingObject_DisposeImage)(HICompositeImagingObject *somSelf, Environment *ev,
  666.         HIImageRef imageRef);
  667. typedef HIImagingObject*   (* SOMLINK somTD_HICompositeImagingObject_GetHIImagingObject)(Environment *ev,
  668.         HIImageType imageType);
  669. typedef HIImageType   (* SOMLINK somTD_HICompositeImagingObject_GetImageType)(Environment *ev,
  670.         ConstHIImageRef imageRef);
  671. typedef OSStatus   (* SOMLINK somTD_HICompositeImagingObject_GetNewImageFromResource)(Environment *ev,
  672.         ResID objectInitializerResourceID,
  673.         HIImageRef* imageRefPtr);
  674. typedef void   (* SOMLINK somTD_HICompositeImagingObject_somInit)(HICompositeImagingObject *somSelf);
  675. typedef void   (* SOMLINK somTD_HICompositeImagingObject_somUninit)(HICompositeImagingObject *somSelf);
  676. typedef SOMObject*   (* SOMLINK somTD_HICompositeImagingObject_somDuplicateReference)(HICompositeImagingObject *somSelf);
  677. typedef boolean   (* SOMLINK somTD_HICompositeImagingObject_somCompareReference)(HICompositeImagingObject *somSelf,
  678.         SOMObject* anObject);
  679. typedef SOMObject*   (* SOMLINK somTD_HICompositeImagingObject_somRelease)(HICompositeImagingObject *somSelf);
  680. typedef void   (* SOMLINK somTD_HICompositeImagingObject_somFree)(HICompositeImagingObject *somSelf);
  681. typedef boolean   (* SOMLINK somTD_HICompositeImagingObject_somCanDelete)(HICompositeImagingObject *somSelf);
  682. typedef SOMClass*   (* SOMLINK somTD_HICompositeImagingObject_somGetClass)(HICompositeImagingObject *somSelf);
  683. typedef corbastring   (* SOMLINK somTD_HICompositeImagingObject_somGetClassName)(HICompositeImagingObject *somSelf);
  684. typedef long   (* SOMLINK somTD_HICompositeImagingObject_somGetSize)(HICompositeImagingObject *somSelf);
  685. typedef boolean   (* SOMLINK somTD_HICompositeImagingObject_somIsA)(HICompositeImagingObject *somSelf,
  686.         SOMClass* aClassObj);
  687. typedef boolean   (* SOMLINK somTD_HICompositeImagingObject_somRespondsTo)(HICompositeImagingObject *somSelf,
  688.         somId mId);
  689. typedef boolean   (* SOMLINK somTD_HICompositeImagingObject_somIsInstanceOf)(HICompositeImagingObject *somSelf,
  690.         SOMClass* aClassObj);
  691. typedef boolean   (* SOMLINK somTD_HICompositeImagingObject_somDispatch)(HICompositeImagingObject *somSelf,
  692.         somToken* retValue,
  693.         somId methodId,
  694.         va_list ap);
  695. typedef boolean   (* SOMLINK somTD_HICompositeImagingObject_somClassDispatch)(HICompositeImagingObject *somSelf,
  696.         SOMClass* clsObj,
  697.         somToken* retValue,
  698.         somId methodId,
  699.         va_list ap);
  700. typedef boolean   (* SOMLINK somTD_HICompositeImagingObject_somCastObj)(HICompositeImagingObject *somSelf,
  701.         SOMClass* cls);
  702. typedef boolean   (* SOMLINK somTD_HICompositeImagingObject_somResetObj)(HICompositeImagingObject *somSelf);
  703. typedef SOMObject*   (* SOMLINK somTD_HICompositeImagingObject_somPrintSelf)(HICompositeImagingObject *somSelf);
  704. typedef void   (* SOMLINK somTD_HICompositeImagingObject_somDumpSelf)(HICompositeImagingObject *somSelf,
  705.         long level);
  706. typedef void   (* SOMLINK somTD_HICompositeImagingObject_somDumpSelfInt)(HICompositeImagingObject *somSelf,
  707.         long level);
  708. }
  709.  
  710. #endif /* HICompositeImagingObject_API */
  711.  
  712.  
  713. /*
  714.  * -- This emitter treats Method Tokens as Thunks by default.
  715.  * -- Use the sc modifier "nothunks" to change this default
  716.  */
  717. #undef somresolve_
  718. #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
  719.  
  720. /*
  721.  * -- The C++ Wrapper Class for HICompositeImagingObject
  722.  */
  723. class HICompositeImagingObject : public HIImagingObject
  724. {
  725. public:
  726.  
  727. // HICompositeImagingObject::new registers use of the class object, and then uses somNew
  728. // to allocate memory and load the object method table pointer. 
  729. void *operator new(size_t size)
  730. {
  731.     SOM_IgnoreWarning(size);
  732.     // Allocate memory using the default allocator for HICompositeImagingObject, and
  733.     // clear mem & set method table pointer, call basic initialization
  734.     return (void*) somNewObject(HICompositeImagingObject);
  735. }
  736.  
  737. // HICompositeImagingObject::delete uses the default deallocator for the object's class.
  738. void operator delete(void * obj)
  739. {
  740.     if (obj) {
  741.         SOM_Resolve(obj,SOMObject,somFree)
  742.            ( (SOMObject*) obj );
  743.     }
  744. }
  745.  
  746. /* method: SetImageSize */
  747. OSStatus   SetImageSize(Environment *ev,
  748.         HIImageRef imageRef,
  749.         UInt16 width,
  750.         UInt16 height)
  751. {
  752.    return SOM_ResolveD(this,HICompositeImagingObject,HICompositeImagingObject,SetImageSize)
  753.     (this,ev,imageRef,width,height);
  754. }
  755.  
  756. /* method: AddSubImages */
  757. OSStatus   AddSubImages(Environment *ev,
  758.         HIImageRef imageRef,
  759.         UInt32 index,
  760.         UInt32 count)
  761. {
  762.    return SOM_ResolveD(this,HICompositeImagingObject,HICompositeImagingObject,AddSubImages)
  763.     (this,ev,imageRef,index,count);
  764. }
  765.  
  766. /* method: SetSubImage */
  767. OSStatus   SetSubImage(Environment *ev,
  768.         HIImageRef imageRef,
  769.         UInt32 index,
  770.         ConstHIImageRef subHIImageRef,
  771.         Rect* subImageRect,
  772.         HIImageOptions options)
  773. {
  774.    return SOM_ResolveD(this,HICompositeImagingObject,HICompositeImagingObject,SetSubImage)
  775.     (this,ev,imageRef,index,subHIImageRef,subImageRect,options);
  776. }
  777.  
  778. /* method: GetSubImage */
  779. OSStatus   GetSubImage(Environment *ev,
  780.         ConstHIImageRef imageRef,
  781.         UInt32 index,
  782.         HIImageRef* subHIImageRefPtr,
  783.         Rect* subImageRect,
  784.         HIImageOptions* options)
  785. {
  786.    return SOM_ResolveD(this,HICompositeImagingObject,HICompositeImagingObject,GetSubImage)
  787.     (this,ev,imageRef,index,subHIImageRefPtr,subImageRect,options);
  788. }
  789.  
  790. /* method: GetSubImageCount */
  791. UInt32   GetSubImageCount(Environment *ev,
  792.         ConstHIImageRef imageRef)
  793. {
  794.    return SOM_ResolveD(this,HICompositeImagingObject,HICompositeImagingObject,GetSubImageCount)
  795.     (this,ev,imageRef);
  796. }
  797.  
  798.  
  799. /*
  800.  * -- Inherited methods
  801.  */
  802. /* method: NewImage */
  803. OSStatus   NewImage(Environment *ev,
  804.         HIImageRef* imageRefPtr)
  805. {
  806.    return SOM_ResolveD(this,HICompositeImagingObject,HIImagingObject,NewImage)
  807.     (this,ev,imageRefPtr);
  808. }
  809.  
  810. /* method: GetNewImage */
  811. OSStatus   GetNewImage(Environment *ev,
  812.         AESubDesc* initializer,
  813.         HIImageRef* imageRefPtr)
  814. {
  815.    return SOM_ResolveD(this,HICompositeImagingObject,HIImagingObject,GetNewImage)
  816.     (this,ev,initializer,imageRefPtr);
  817. }
  818.  
  819. /* method: CloneImage */
  820. HIImageRef   CloneImage(Environment *ev,
  821.         HIImageRef imageRef)
  822. {
  823.    return SOM_ResolveD(this,HICompositeImagingObject,HIImagingObject,CloneImage)
  824.     (this,ev,imageRef);
  825. }
  826.  
  827. /* method: ReleaseImage */
  828. OSStatus   ReleaseImage(Environment *ev,
  829.         HIImageRef imageRef)
  830. {
  831.    return SOM_ResolveD(this,HICompositeImagingObject,HIImagingObject,ReleaseImage)
  832.     (this,ev,imageRef);
  833. }
  834.  
  835. /* method: GetImageOwnerCount */
  836. ItemCount   GetImageOwnerCount(Environment *ev,
  837.         ConstHIImageRef imageRef)
  838. {
  839.    return SOM_ResolveD(this,HICompositeImagingObject,HIImagingObject,GetImageOwnerCount)
  840.     (this,ev,imageRef);
  841. }
  842.  
  843. /* method: InitFromAERecord */
  844. OSStatus   InitFromAERecord(Environment *ev,
  845.         HIImageRef imageRef,
  846.         AESubDesc* dataForBaseClass,
  847.         AESubDesc* dataForClass,
  848.         HIAERecordDataFormat dataFormat)
  849. {
  850.    return SOM_ResolveD(this,HICompositeImagingObject,HIImagingObject,InitFromAERecord)
  851.     (this,ev,imageRef,dataForBaseClass,dataForClass,dataFormat);
  852. }
  853.  
  854. /* method: WriteToAERecord */
  855. OSStatus   WriteToAERecord(Environment *ev,
  856.         ConstHIImageRef imageRef,
  857.         AERecord* dataForSubclass,
  858.         AERecord* dataForClass,
  859.         HIAERecordDataFormat dataFormat)
  860. {
  861.    return SOM_ResolveD(this,HICompositeImagingObject,HIImagingObject,WriteToAERecord)
  862.     (this,ev,imageRef,dataForSubclass,dataForClass,dataFormat);
  863. }
  864.  
  865. /* method: MeasureImage */
  866. OSStatus   MeasureImage(Environment *ev,
  867.         ConstHIImageRef imageRef,
  868.         CGrafPtr port,
  869.         UInt32* widthPtr,
  870.         UInt32* heightPtr,
  871.         HIImageOptions measureOptions)
  872. {
  873.    return SOM_ResolveD(this,HICompositeImagingObject,HIImagingObject,MeasureImage)
  874.     (this,ev,imageRef,port,widthPtr,heightPtr,measureOptions);
  875. }
  876.  
  877. /* method: DrawImage */
  878. OSStatus   DrawImage(Environment *ev,
  879.         ConstHIImageRef imageRef,
  880.         CGrafPtr port,
  881.         Rect* contentRect,
  882.         Rect* frameRect,
  883.         HIImageOptions drawOptions)
  884. {
  885.    return SOM_ResolveD(this,HICompositeImagingObject,HIImagingObject,DrawImage)
  886.     (this,ev,imageRef,port,contentRect,frameRect,drawOptions);
  887. }
  888.  
  889. /* method: DisposeImage */
  890. OSStatus   DisposeImage(Environment *ev,
  891.         HIImageRef imageRef)
  892. {
  893.    return SOM_ResolveD(this,HICompositeImagingObject,HIImagingObject,DisposeImage)
  894.     (this,ev,imageRef);
  895. }
  896.  
  897. /* noself procedure: GetHIImagingObject */
  898. static HIImagingObject*   GetHIImagingObject(Environment *ev,
  899.         HIImageType imageType)
  900. {
  901. return ((somTD_HICompositeImagingObject_GetHIImagingObject)HIImagingObjectClassData.GetHIImagingObject)
  902.     (ev,imageType);
  903. }
  904.  
  905. /* noself procedure: GetImageType */
  906. static HIImageType   GetImageType(Environment *ev,
  907.         ConstHIImageRef imageRef)
  908. {
  909. return ((somTD_HICompositeImagingObject_GetImageType)HIImagingObjectClassData.GetImageType)
  910.     (ev,imageRef);
  911. }
  912.  
  913. /* noself procedure: GetNewImageFromResource */
  914. static OSStatus   GetNewImageFromResource(Environment *ev,
  915.         ResID objectInitializerResourceID,
  916.         HIImageRef* imageRefPtr)
  917. {
  918. return ((somTD_HICompositeImagingObject_GetNewImageFromResource)HIImagingObjectClassData.GetNewImageFromResource)
  919.     (ev,objectInitializerResourceID,imageRefPtr);
  920. }
  921.  
  922. /* method: somInit */
  923. void   somInit()
  924. {
  925.    SOM_ResolveD(this,HICompositeImagingObject,SOMObject,somInit)
  926.     (this);
  927. }
  928.  
  929. /* method: somUninit */
  930. void   somUninit()
  931. {
  932.    SOM_ResolveD(this,HICompositeImagingObject,SOMObject,somUninit)
  933.     (this);
  934. }
  935.  
  936. /* method: somDuplicateReference */
  937. SOMObject*   somDuplicateReference()
  938. {
  939.    return SOM_ResolveD(this,HICompositeImagingObject,SOMObject,somDuplicateReference)
  940.     (this);
  941. }
  942.  
  943. /* method: somCompareReference */
  944. boolean   somCompareReference(SOMObject* anObject)
  945. {
  946.    return SOM_ResolveD(this,HICompositeImagingObject,SOMObject,somCompareReference)
  947.     (this,anObject);
  948. }
  949.  
  950. /* method: somRelease */
  951. SOMObject*   somRelease()
  952. {
  953.    return SOM_ResolveD(this,HICompositeImagingObject,SOMObject,somRelease)
  954.     (this);
  955. }
  956.  
  957. /* method: somFree */
  958. void   somFree()
  959. {
  960.    SOM_ResolveD(this,HICompositeImagingObject,SOMObject,somFree)
  961.     (this);
  962. }
  963.  
  964. /* method: somCanDelete */
  965. boolean   somCanDelete()
  966. {
  967.    return SOM_ResolveD(this,HICompositeImagingObject,SOMObject,somCanDelete)
  968.     (this);
  969. }
  970.  
  971. /* method: somGetClass */
  972. SOMClass*   somGetClass()
  973. {
  974.    return SOM_ResolveD(this,HICompositeImagingObject,SOMObject,somGetClass)
  975.     (this);
  976. }
  977.  
  978. /* method: somGetClassName */
  979. corbastring   somGetClassName()
  980. {
  981.    return SOM_ResolveD(this,HICompositeImagingObject,SOMObject,somGetClassName)
  982.     (this);
  983. }
  984.  
  985. /* method: somGetSize */
  986. long   somGetSize()
  987. {
  988.    return SOM_ResolveD(this,HICompositeImagingObject,SOMObject,somGetSize)
  989.     (this);
  990. }
  991.  
  992. /* method: somIsA */
  993. boolean   somIsA(SOMClass* aClassObj)
  994. {
  995.    return SOM_ResolveD(this,HICompositeImagingObject,SOMObject,somIsA)
  996.     (this,aClassObj);
  997. }
  998.  
  999. /* method: somRespondsTo */
  1000. boolean   somRespondsTo(somId mId)
  1001. {
  1002.    return SOM_ResolveD(this,HICompositeImagingObject,SOMObject,somRespondsTo)
  1003.     (this,mId);
  1004. }
  1005.  
  1006. /* method: somIsInstanceOf */
  1007. boolean   somIsInstanceOf(SOMClass* aClassObj)
  1008. {
  1009.    return SOM_ResolveD(this,HICompositeImagingObject,SOMObject,somIsInstanceOf)
  1010.     (this,aClassObj);
  1011. }
  1012.  
  1013. /* va_list method: somDispatch */
  1014. /* the va_list invocation form */
  1015. boolean   HICompositeImagingObject_somDispatch(somToken* retValue,
  1016.         somId methodId,
  1017.         va_list ap)
  1018. {
  1019.    return SOM_ResolveD(this,HICompositeImagingObject,SOMObject,somDispatch)
  1020.     (this,retValue,methodId,ap);
  1021. }
  1022.  
  1023. /* the varargs invocation form */
  1024. boolean   somDispatch(somToken* retValue,
  1025.         somId methodId,
  1026.         ...)
  1027. {
  1028.    va_list ap;
  1029.    va_start(ap, methodId);
  1030.       boolean __somResult = 
  1031.       (boolean) SOM_ResolveD(this,HICompositeImagingObject,SOMObject,somDispatch)
  1032.     (this,retValue,methodId,ap);
  1033.    va_end(ap);
  1034.    return __somResult;
  1035. }
  1036.  
  1037. /* va_list method: somClassDispatch */
  1038. /* the va_list invocation form */
  1039. boolean   HICompositeImagingObject_somClassDispatch(SOMClass* clsObj,
  1040.         somToken* retValue,
  1041.         somId methodId,
  1042.         va_list ap)
  1043. {
  1044.    return SOM_ResolveD(this,HICompositeImagingObject,SOMObject,somClassDispatch)
  1045.     (this,clsObj,retValue,methodId,ap);
  1046. }
  1047.  
  1048. /* the varargs invocation form */
  1049. boolean   somClassDispatch(SOMClass* clsObj,
  1050.         somToken* retValue,
  1051.         somId methodId,
  1052.         ...)
  1053. {
  1054.    va_list ap;
  1055.    va_start(ap, methodId);
  1056.       boolean __somResult = 
  1057.       (boolean) SOM_ResolveD(this,HICompositeImagingObject,SOMObject,somClassDispatch)
  1058.     (this,clsObj,retValue,methodId,ap);
  1059.    va_end(ap);
  1060.    return __somResult;
  1061. }
  1062.  
  1063. /* method: somCastObj */
  1064. boolean   somCastObj(SOMClass* cls)
  1065. {
  1066.    return SOM_ResolveD(this,HICompositeImagingObject,SOMObject,somCastObj)
  1067.     (this,cls);
  1068. }
  1069.  
  1070. /* method: somResetObj */
  1071. boolean   somResetObj()
  1072. {
  1073.    return SOM_ResolveD(this,HICompositeImagingObject,SOMObject,somResetObj)
  1074.     (this);
  1075. }
  1076.  
  1077. /* method: somPrintSelf */
  1078. SOMObject*   somPrintSelf()
  1079. {
  1080.    return SOM_ResolveD(this,HICompositeImagingObject,SOMObject,somPrintSelf)
  1081.     (this);
  1082. }
  1083.  
  1084. /* method: somDumpSelf */
  1085. void   somDumpSelf(long level)
  1086. {
  1087.    SOM_ResolveD(this,HICompositeImagingObject,SOMObject,somDumpSelf)
  1088.     (this,level);
  1089. }
  1090.  
  1091. /* method: somDumpSelfInt */
  1092. void   somDumpSelfInt(long level)
  1093. {
  1094.    SOM_ResolveD(this,HICompositeImagingObject,SOMObject,somDumpSelfInt)
  1095.     (this,level);
  1096. }
  1097.  
  1098. };   /* HICompositeImagingObject */
  1099.  
  1100.  
  1101.  
  1102. #endif       /* SOM_HICompositeImagingObject_xh */
  1103.  
  1104. #ifndef SOM_HIIconImagingObject_xh
  1105. #define SOM_HIIconImagingObject_xh
  1106.  
  1107. class HIIconImagingObject;
  1108.  
  1109. #define HIIconImagingObject_MajorVersion 0
  1110. #define HIIconImagingObject_MinorVersion 0
  1111.  
  1112. /*
  1113.  * Passthru lines: File: "C.xh", "before"
  1114.  */
  1115. #include <Collections.h>
  1116. #include <Quickdraw.h>
  1117. #include <TextEdit.h>
  1118. #include <TextObjects.h>
  1119. #include <Types.h>
  1120. #include <HIObjectTypes.h>
  1121. #include <HIImagingObjectTypes.h>
  1122.  
  1123. /* C++ SOM defs */
  1124. #include <somcls.xh>
  1125. #include <somcm.xh>
  1126.  
  1127. /* C++ parent defs */
  1128. #ifndef SOM_HIImagingObject_xh
  1129. #include <HIImagingObjects.xh>
  1130. #endif
  1131.  
  1132. #ifndef HIIconImagingObject_API
  1133. #define HIIconImagingObject_API
  1134. /*
  1135.  * -- The Class API
  1136.  */
  1137.  
  1138. /*
  1139.  * Start of user-defined types:
  1140.  */
  1141.  
  1142. /*
  1143.  * End of user-defined types.
  1144.  */
  1145.  
  1146. #ifdef OLDIBMSOMAPISUPPORT
  1147. #define HIIconImagingObjectCClassData HIIconImagingObjectClassData
  1148. #define HIIconImagingObjectNewClass(major,minor) somNewVersionedClassReference(HIIconImagingObject,major,minor)
  1149. #endif
  1150.  
  1151. /* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
  1152. #define HIIconImagingObjectMetaClass SOMClass
  1153.  
  1154. #if PRAGMA_ALIGN_SUPPORTED
  1155. #  pragma options align=power
  1156. #endif
  1157.  
  1158. /* The API to the HIIconImagingObject class object, and the methods it introduces. */
  1159. SOMEXTERN struct HIIconImagingObjectClassDataStructure {
  1160. #ifdef OLDIBMSOMAPISUPPORT
  1161.     SOMClass            *classObject;    /* always zero, use somNewClassReference instead */
  1162. #else
  1163.     long zero;
  1164. #endif
  1165.     somStaticClassInfo *sci;
  1166.     somDToken        instanceDataToken;
  1167.     long reserved [3];
  1168.     somMToken SetIcon;
  1169.     somMToken GetIcon;
  1170. } SOMDLINK HIIconImagingObjectClassData;
  1171.  
  1172. #if PRAGMA_ALIGN_SUPPORTED
  1173. #  pragma options align=reset
  1174. #endif
  1175.  
  1176. #if !defined(HIIconImagingObject_Class_Source) && !defined(SOM_Module_hiimagingobjects_Source)
  1177. #if PRAGMA_IMPORT_SUPPORTED
  1178. #pragma import list HIIconImagingObjectClassData
  1179. #endif
  1180. #endif
  1181.  
  1182.  
  1183. /*
  1184.  * -- Typedefs for HIIconImagingObject Method Procedures
  1185.  */
  1186. SOMEXTERN {
  1187. typedef OSStatus   (* SOMLINK somTD_HIIconImagingObject_SetIcon)(HIIconImagingObject *somSelf, Environment *ev,
  1188.         HIImageRef imageRef,
  1189.         Handle iconSuite);
  1190. typedef OSStatus   (* SOMLINK somTD_HIIconImagingObject_GetIcon)(HIIconImagingObject *somSelf, Environment *ev,
  1191.         ConstHIImageRef imageRef,
  1192.         Handle* iconSuitePtr);
  1193.  
  1194. /*
  1195.  * -- Typedefs for Inherited Methods
  1196.  */
  1197. typedef OSStatus   (* SOMLINK somTD_HIIconImagingObject_NewImage)(HIIconImagingObject *somSelf, Environment *ev,
  1198.         HIImageRef* imageRefPtr);
  1199. typedef OSStatus   (* SOMLINK somTD_HIIconImagingObject_GetNewImage)(HIIconImagingObject *somSelf, Environment *ev,
  1200.         AESubDesc* initializer,
  1201.         HIImageRef* imageRefPtr);
  1202. typedef HIImageRef   (* SOMLINK somTD_HIIconImagingObject_CloneImage)(HIIconImagingObject *somSelf, Environment *ev,
  1203.         HIImageRef imageRef);
  1204. typedef OSStatus   (* SOMLINK somTD_HIIconImagingObject_ReleaseImage)(HIIconImagingObject *somSelf, Environment *ev,
  1205.         HIImageRef imageRef);
  1206. typedef ItemCount   (* SOMLINK somTD_HIIconImagingObject_GetImageOwnerCount)(HIIconImagingObject *somSelf, Environment *ev,
  1207.         ConstHIImageRef imageRef);
  1208. typedef OSStatus   (* SOMLINK somTD_HIIconImagingObject_InitFromAERecord)(HIIconImagingObject *somSelf, Environment *ev,
  1209.         HIImageRef imageRef,
  1210.         AESubDesc* dataForBaseClass,
  1211.         AESubDesc* dataForClass,
  1212.         HIAERecordDataFormat dataFormat);
  1213. typedef OSStatus   (* SOMLINK somTD_HIIconImagingObject_WriteToAERecord)(HIIconImagingObject *somSelf, Environment *ev,
  1214.         ConstHIImageRef imageRef,
  1215.         AERecord* dataForSubclass,
  1216.         AERecord* dataForClass,
  1217.         HIAERecordDataFormat dataFormat);
  1218. typedef OSStatus   (* SOMLINK somTD_HIIconImagingObject_MeasureImage)(HIIconImagingObject *somSelf, Environment *ev,
  1219.         ConstHIImageRef imageRef,
  1220.         CGrafPtr port,
  1221.         UInt32* widthPtr,
  1222.         UInt32* heightPtr,
  1223.         HIImageOptions measureOptions);
  1224. typedef OSStatus   (* SOMLINK somTD_HIIconImagingObject_DrawImage)(HIIconImagingObject *somSelf, Environment *ev,
  1225.         ConstHIImageRef imageRef,
  1226.         CGrafPtr port,
  1227.         Rect* contentRect,
  1228.         Rect* frameRect,
  1229.         HIImageOptions drawOptions);
  1230. typedef OSStatus   (* SOMLINK somTD_HIIconImagingObject_DisposeImage)(HIIconImagingObject *somSelf, Environment *ev,
  1231.         HIImageRef imageRef);
  1232. typedef HIImagingObject*   (* SOMLINK somTD_HIIconImagingObject_GetHIImagingObject)(Environment *ev,
  1233.         HIImageType imageType);
  1234. typedef HIImageType   (* SOMLINK somTD_HIIconImagingObject_GetImageType)(Environment *ev,
  1235.         ConstHIImageRef imageRef);
  1236. typedef OSStatus   (* SOMLINK somTD_HIIconImagingObject_GetNewImageFromResource)(Environment *ev,
  1237.         ResID objectInitializerResourceID,
  1238.         HIImageRef* imageRefPtr);
  1239. typedef void   (* SOMLINK somTD_HIIconImagingObject_somInit)(HIIconImagingObject *somSelf);
  1240. typedef void   (* SOMLINK somTD_HIIconImagingObject_somUninit)(HIIconImagingObject *somSelf);
  1241. typedef SOMObject*   (* SOMLINK somTD_HIIconImagingObject_somDuplicateReference)(HIIconImagingObject *somSelf);
  1242. typedef boolean   (* SOMLINK somTD_HIIconImagingObject_somCompareReference)(HIIconImagingObject *somSelf,
  1243.         SOMObject* anObject);
  1244. typedef SOMObject*   (* SOMLINK somTD_HIIconImagingObject_somRelease)(HIIconImagingObject *somSelf);
  1245. typedef void   (* SOMLINK somTD_HIIconImagingObject_somFree)(HIIconImagingObject *somSelf);
  1246. typedef boolean   (* SOMLINK somTD_HIIconImagingObject_somCanDelete)(HIIconImagingObject *somSelf);
  1247. typedef SOMClass*   (* SOMLINK somTD_HIIconImagingObject_somGetClass)(HIIconImagingObject *somSelf);
  1248. typedef corbastring   (* SOMLINK somTD_HIIconImagingObject_somGetClassName)(HIIconImagingObject *somSelf);
  1249. typedef long   (* SOMLINK somTD_HIIconImagingObject_somGetSize)(HIIconImagingObject *somSelf);
  1250. typedef boolean   (* SOMLINK somTD_HIIconImagingObject_somIsA)(HIIconImagingObject *somSelf,
  1251.         SOMClass* aClassObj);
  1252. typedef boolean   (* SOMLINK somTD_HIIconImagingObject_somRespondsTo)(HIIconImagingObject *somSelf,
  1253.         somId mId);
  1254. typedef boolean   (* SOMLINK somTD_HIIconImagingObject_somIsInstanceOf)(HIIconImagingObject *somSelf,
  1255.         SOMClass* aClassObj);
  1256. typedef boolean   (* SOMLINK somTD_HIIconImagingObject_somDispatch)(HIIconImagingObject *somSelf,
  1257.         somToken* retValue,
  1258.         somId methodId,
  1259.         va_list ap);
  1260. typedef boolean   (* SOMLINK somTD_HIIconImagingObject_somClassDispatch)(HIIconImagingObject *somSelf,
  1261.         SOMClass* clsObj,
  1262.         somToken* retValue,
  1263.         somId methodId,
  1264.         va_list ap);
  1265. typedef boolean   (* SOMLINK somTD_HIIconImagingObject_somCastObj)(HIIconImagingObject *somSelf,
  1266.         SOMClass* cls);
  1267. typedef boolean   (* SOMLINK somTD_HIIconImagingObject_somResetObj)(HIIconImagingObject *somSelf);
  1268. typedef SOMObject*   (* SOMLINK somTD_HIIconImagingObject_somPrintSelf)(HIIconImagingObject *somSelf);
  1269. typedef void   (* SOMLINK somTD_HIIconImagingObject_somDumpSelf)(HIIconImagingObject *somSelf,
  1270.         long level);
  1271. typedef void   (* SOMLINK somTD_HIIconImagingObject_somDumpSelfInt)(HIIconImagingObject *somSelf,
  1272.         long level);
  1273. }
  1274.  
  1275. #endif /* HIIconImagingObject_API */
  1276.  
  1277.  
  1278. /*
  1279.  * -- This emitter treats Method Tokens as Thunks by default.
  1280.  * -- Use the sc modifier "nothunks" to change this default
  1281.  */
  1282. #undef somresolve_
  1283. #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
  1284.  
  1285. /*
  1286.  * -- The C++ Wrapper Class for HIIconImagingObject
  1287.  */
  1288. class HIIconImagingObject : public HIImagingObject
  1289. {
  1290. public:
  1291.  
  1292. // HIIconImagingObject::new registers use of the class object, and then uses somNew
  1293. // to allocate memory and load the object method table pointer. 
  1294. void *operator new(size_t size)
  1295. {
  1296.     SOM_IgnoreWarning(size);
  1297.     // Allocate memory using the default allocator for HIIconImagingObject, and
  1298.     // clear mem & set method table pointer, call basic initialization
  1299.     return (void*) somNewObject(HIIconImagingObject);
  1300. }
  1301.  
  1302. // HIIconImagingObject::delete uses the default deallocator for the object's class.
  1303. void operator delete(void * obj)
  1304. {
  1305.     if (obj) {
  1306.         SOM_Resolve(obj,SOMObject,somFree)
  1307.            ( (SOMObject*) obj );
  1308.     }
  1309. }
  1310.  
  1311. /* method: SetIcon */
  1312. OSStatus   SetIcon(Environment *ev,
  1313.         HIImageRef imageRef,
  1314.         Handle iconSuite)
  1315. {
  1316.    return SOM_ResolveD(this,HIIconImagingObject,HIIconImagingObject,SetIcon)
  1317.     (this,ev,imageRef,iconSuite);
  1318. }
  1319.  
  1320. /* method: GetIcon */
  1321. OSStatus   GetIcon(Environment *ev,
  1322.         ConstHIImageRef imageRef,
  1323.         Handle* iconSuitePtr)
  1324. {
  1325.    return SOM_ResolveD(this,HIIconImagingObject,HIIconImagingObject,GetIcon)
  1326.     (this,ev,imageRef,iconSuitePtr);
  1327. }
  1328.  
  1329.  
  1330. /*
  1331.  * -- Inherited methods
  1332.  */
  1333. /* method: NewImage */
  1334. OSStatus   NewImage(Environment *ev,
  1335.         HIImageRef* imageRefPtr)
  1336. {
  1337.    return SOM_ResolveD(this,HIIconImagingObject,HIImagingObject,NewImage)
  1338.     (this,ev,imageRefPtr);
  1339. }
  1340.  
  1341. /* method: GetNewImage */
  1342. OSStatus   GetNewImage(Environment *ev,
  1343.         AESubDesc* initializer,
  1344.         HIImageRef* imageRefPtr)
  1345. {
  1346.    return SOM_ResolveD(this,HIIconImagingObject,HIImagingObject,GetNewImage)
  1347.     (this,ev,initializer,imageRefPtr);
  1348. }
  1349.  
  1350. /* method: CloneImage */
  1351. HIImageRef   CloneImage(Environment *ev,
  1352.         HIImageRef imageRef)
  1353. {
  1354.    return SOM_ResolveD(this,HIIconImagingObject,HIImagingObject,CloneImage)
  1355.     (this,ev,imageRef);
  1356. }
  1357.  
  1358. /* method: ReleaseImage */
  1359. OSStatus   ReleaseImage(Environment *ev,
  1360.         HIImageRef imageRef)
  1361. {
  1362.    return SOM_ResolveD(this,HIIconImagingObject,HIImagingObject,ReleaseImage)
  1363.     (this,ev,imageRef);
  1364. }
  1365.  
  1366. /* method: GetImageOwnerCount */
  1367. ItemCount   GetImageOwnerCount(Environment *ev,
  1368.         ConstHIImageRef imageRef)
  1369. {
  1370.    return SOM_ResolveD(this,HIIconImagingObject,HIImagingObject,GetImageOwnerCount)
  1371.     (this,ev,imageRef);
  1372. }
  1373.  
  1374. /* method: InitFromAERecord */
  1375. OSStatus   InitFromAERecord(Environment *ev,
  1376.         HIImageRef imageRef,
  1377.         AESubDesc* dataForBaseClass,
  1378.         AESubDesc* dataForClass,
  1379.         HIAERecordDataFormat dataFormat)
  1380. {
  1381.    return SOM_ResolveD(this,HIIconImagingObject,HIImagingObject,InitFromAERecord)
  1382.     (this,ev,imageRef,dataForBaseClass,dataForClass,dataFormat);
  1383. }
  1384.  
  1385. /* method: WriteToAERecord */
  1386. OSStatus   WriteToAERecord(Environment *ev,
  1387.         ConstHIImageRef imageRef,
  1388.         AERecord* dataForSubclass,
  1389.         AERecord* dataForClass,
  1390.         HIAERecordDataFormat dataFormat)
  1391. {
  1392.    return SOM_ResolveD(this,HIIconImagingObject,HIImagingObject,WriteToAERecord)
  1393.     (this,ev,imageRef,dataForSubclass,dataForClass,dataFormat);
  1394. }
  1395.  
  1396. /* method: MeasureImage */
  1397. OSStatus   MeasureImage(Environment *ev,
  1398.         ConstHIImageRef imageRef,
  1399.         CGrafPtr port,
  1400.         UInt32* widthPtr,
  1401.         UInt32* heightPtr,
  1402.         HIImageOptions measureOptions)
  1403. {
  1404.    return SOM_ResolveD(this,HIIconImagingObject,HIImagingObject,MeasureImage)
  1405.     (this,ev,imageRef,port,widthPtr,heightPtr,measureOptions);
  1406. }
  1407.  
  1408. /* method: DrawImage */
  1409. OSStatus   DrawImage(Environment *ev,
  1410.         ConstHIImageRef imageRef,
  1411.         CGrafPtr port,
  1412.         Rect* contentRect,
  1413.         Rect* frameRect,
  1414.         HIImageOptions drawOptions)
  1415. {
  1416.    return SOM_ResolveD(this,HIIconImagingObject,HIImagingObject,DrawImage)
  1417.     (this,ev,imageRef,port,contentRect,frameRect,drawOptions);
  1418. }
  1419.  
  1420. /* method: DisposeImage */
  1421. OSStatus   DisposeImage(Environment *ev,
  1422.         HIImageRef imageRef)
  1423. {
  1424.    return SOM_ResolveD(this,HIIconImagingObject,HIImagingObject,DisposeImage)
  1425.     (this,ev,imageRef);
  1426. }
  1427.  
  1428. /* noself procedure: GetHIImagingObject */
  1429. static HIImagingObject*   GetHIImagingObject(Environment *ev,
  1430.         HIImageType imageType)
  1431. {
  1432. return ((somTD_HIIconImagingObject_GetHIImagingObject)HIImagingObjectClassData.GetHIImagingObject)
  1433.     (ev,imageType);
  1434. }
  1435.  
  1436. /* noself procedure: GetImageType */
  1437. static HIImageType   GetImageType(Environment *ev,
  1438.         ConstHIImageRef imageRef)
  1439. {
  1440. return ((somTD_HIIconImagingObject_GetImageType)HIImagingObjectClassData.GetImageType)
  1441.     (ev,imageRef);
  1442. }
  1443.  
  1444. /* noself procedure: GetNewImageFromResource */
  1445. static OSStatus   GetNewImageFromResource(Environment *ev,
  1446.         ResID objectInitializerResourceID,
  1447.         HIImageRef* imageRefPtr)
  1448. {
  1449. return ((somTD_HIIconImagingObject_GetNewImageFromResource)HIImagingObjectClassData.GetNewImageFromResource)
  1450.     (ev,objectInitializerResourceID,imageRefPtr);
  1451. }
  1452.  
  1453. /* method: somInit */
  1454. void   somInit()
  1455. {
  1456.    SOM_ResolveD(this,HIIconImagingObject,SOMObject,somInit)
  1457.     (this);
  1458. }
  1459.  
  1460. /* method: somUninit */
  1461. void   somUninit()
  1462. {
  1463.    SOM_ResolveD(this,HIIconImagingObject,SOMObject,somUninit)
  1464.     (this);
  1465. }
  1466.  
  1467. /* method: somDuplicateReference */
  1468. SOMObject*   somDuplicateReference()
  1469. {
  1470.    return SOM_ResolveD(this,HIIconImagingObject,SOMObject,somDuplicateReference)
  1471.     (this);
  1472. }
  1473.  
  1474. /* method: somCompareReference */
  1475. boolean   somCompareReference(SOMObject* anObject)
  1476. {
  1477.    return SOM_ResolveD(this,HIIconImagingObject,SOMObject,somCompareReference)
  1478.     (this,anObject);
  1479. }
  1480.  
  1481. /* method: somRelease */
  1482. SOMObject*   somRelease()
  1483. {
  1484.    return SOM_ResolveD(this,HIIconImagingObject,SOMObject,somRelease)
  1485.     (this);
  1486. }
  1487.  
  1488. /* method: somFree */
  1489. void   somFree()
  1490. {
  1491.    SOM_ResolveD(this,HIIconImagingObject,SOMObject,somFree)
  1492.     (this);
  1493. }
  1494.  
  1495. /* method: somCanDelete */
  1496. boolean   somCanDelete()
  1497. {
  1498.    return SOM_ResolveD(this,HIIconImagingObject,SOMObject,somCanDelete)
  1499.     (this);
  1500. }
  1501.  
  1502. /* method: somGetClass */
  1503. SOMClass*   somGetClass()
  1504. {
  1505.    return SOM_ResolveD(this,HIIconImagingObject,SOMObject,somGetClass)
  1506.     (this);
  1507. }
  1508.  
  1509. /* method: somGetClassName */
  1510. corbastring   somGetClassName()
  1511. {
  1512.    return SOM_ResolveD(this,HIIconImagingObject,SOMObject,somGetClassName)
  1513.     (this);
  1514. }
  1515.  
  1516. /* method: somGetSize */
  1517. long   somGetSize()
  1518. {
  1519.    return SOM_ResolveD(this,HIIconImagingObject,SOMObject,somGetSize)
  1520.     (this);
  1521. }
  1522.  
  1523. /* method: somIsA */
  1524. boolean   somIsA(SOMClass* aClassObj)
  1525. {
  1526.    return SOM_ResolveD(this,HIIconImagingObject,SOMObject,somIsA)
  1527.     (this,aClassObj);
  1528. }
  1529.  
  1530. /* method: somRespondsTo */
  1531. boolean   somRespondsTo(somId mId)
  1532. {
  1533.    return SOM_ResolveD(this,HIIconImagingObject,SOMObject,somRespondsTo)
  1534.     (this,mId);
  1535. }
  1536.  
  1537. /* method: somIsInstanceOf */
  1538. boolean   somIsInstanceOf(SOMClass* aClassObj)
  1539. {
  1540.    return SOM_ResolveD(this,HIIconImagingObject,SOMObject,somIsInstanceOf)
  1541.     (this,aClassObj);
  1542. }
  1543.  
  1544. /* va_list method: somDispatch */
  1545. /* the va_list invocation form */
  1546. boolean   HIIconImagingObject_somDispatch(somToken* retValue,
  1547.         somId methodId,
  1548.         va_list ap)
  1549. {
  1550.    return SOM_ResolveD(this,HIIconImagingObject,SOMObject,somDispatch)
  1551.     (this,retValue,methodId,ap);
  1552. }
  1553.  
  1554. /* the varargs invocation form */
  1555. boolean   somDispatch(somToken* retValue,
  1556.         somId methodId,
  1557.         ...)
  1558. {
  1559.    va_list ap;
  1560.    va_start(ap, methodId);
  1561.       boolean __somResult = 
  1562.       (boolean) SOM_ResolveD(this,HIIconImagingObject,SOMObject,somDispatch)
  1563.     (this,retValue,methodId,ap);
  1564.    va_end(ap);
  1565.    return __somResult;
  1566. }
  1567.  
  1568. /* va_list method: somClassDispatch */
  1569. /* the va_list invocation form */
  1570. boolean   HIIconImagingObject_somClassDispatch(SOMClass* clsObj,
  1571.         somToken* retValue,
  1572.         somId methodId,
  1573.         va_list ap)
  1574. {
  1575.    return SOM_ResolveD(this,HIIconImagingObject,SOMObject,somClassDispatch)
  1576.     (this,clsObj,retValue,methodId,ap);
  1577. }
  1578.  
  1579. /* the varargs invocation form */
  1580. boolean   somClassDispatch(SOMClass* clsObj,
  1581.         somToken* retValue,
  1582.         somId methodId,
  1583.         ...)
  1584. {
  1585.    va_list ap;
  1586.    va_start(ap, methodId);
  1587.       boolean __somResult = 
  1588.       (boolean) SOM_ResolveD(this,HIIconImagingObject,SOMObject,somClassDispatch)
  1589.     (this,clsObj,retValue,methodId,ap);
  1590.    va_end(ap);
  1591.    return __somResult;
  1592. }
  1593.  
  1594. /* method: somCastObj */
  1595. boolean   somCastObj(SOMClass* cls)
  1596. {
  1597.    return SOM_ResolveD(this,HIIconImagingObject,SOMObject,somCastObj)
  1598.     (this,cls);
  1599. }
  1600.  
  1601. /* method: somResetObj */
  1602. boolean   somResetObj()
  1603. {
  1604.    return SOM_ResolveD(this,HIIconImagingObject,SOMObject,somResetObj)
  1605.     (this);
  1606. }
  1607.  
  1608. /* method: somPrintSelf */
  1609. SOMObject*   somPrintSelf()
  1610. {
  1611.    return SOM_ResolveD(this,HIIconImagingObject,SOMObject,somPrintSelf)
  1612.     (this);
  1613. }
  1614.  
  1615. /* method: somDumpSelf */
  1616. void   somDumpSelf(long level)
  1617. {
  1618.    SOM_ResolveD(this,HIIconImagingObject,SOMObject,somDumpSelf)
  1619.     (this,level);
  1620. }
  1621.  
  1622. /* method: somDumpSelfInt */
  1623. void   somDumpSelfInt(long level)
  1624. {
  1625.    SOM_ResolveD(this,HIIconImagingObject,SOMObject,somDumpSelfInt)
  1626.     (this,level);
  1627. }
  1628.  
  1629. };   /* HIIconImagingObject */
  1630.  
  1631.  
  1632.  
  1633. #endif       /* SOM_HIIconImagingObject_xh */
  1634.  
  1635. #ifndef SOM_HIPatternImagingObject_xh
  1636. #define SOM_HIPatternImagingObject_xh
  1637.  
  1638. class HIPatternImagingObject;
  1639.  
  1640. #define HIPatternImagingObject_MajorVersion 0
  1641. #define HIPatternImagingObject_MinorVersion 0
  1642.  
  1643. /*
  1644.  * Passthru lines: File: "C.xh", "before"
  1645.  */
  1646. #include <Collections.h>
  1647. #include <Quickdraw.h>
  1648. #include <TextEdit.h>
  1649. #include <TextObjects.h>
  1650. #include <Types.h>
  1651. #include <HIObjectTypes.h>
  1652. #include <HIImagingObjectTypes.h>
  1653.  
  1654. /* C++ SOM defs */
  1655. #include <somcls.xh>
  1656. #include <somcm.xh>
  1657.  
  1658. /* C++ parent defs */
  1659. #ifndef SOM_HIImagingObject_xh
  1660. #include <HIImagingObjects.xh>
  1661. #endif
  1662.  
  1663. #ifndef HIPatternImagingObject_API
  1664. #define HIPatternImagingObject_API
  1665. /*
  1666.  * -- The Class API
  1667.  */
  1668.  
  1669. /*
  1670.  * Start of user-defined types:
  1671.  */
  1672.  
  1673. /*
  1674.  * End of user-defined types.
  1675.  */
  1676.  
  1677. #ifdef OLDIBMSOMAPISUPPORT
  1678. #define HIPatternImagingObjectCClassData HIPatternImagingObjectClassData
  1679. #define HIPatternImagingObjectNewClass(major,minor) somNewVersionedClassReference(HIPatternImagingObject,major,minor)
  1680. #endif
  1681.  
  1682. /* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
  1683. #define HIPatternImagingObjectMetaClass SOMClass
  1684.  
  1685. #if PRAGMA_ALIGN_SUPPORTED
  1686. #  pragma options align=power
  1687. #endif
  1688.  
  1689. /* The API to the HIPatternImagingObject class object, and the methods it introduces. */
  1690. SOMEXTERN struct HIPatternImagingObjectClassDataStructure {
  1691. #ifdef OLDIBMSOMAPISUPPORT
  1692.     SOMClass            *classObject;    /* always zero, use somNewClassReference instead */
  1693. #else
  1694.     long zero;
  1695. #endif
  1696.     somStaticClassInfo *sci;
  1697.     somDToken        instanceDataToken;
  1698.     long reserved [3];
  1699.     somMToken SetPattern;
  1700.     somMToken GetPattern;
  1701. } SOMDLINK HIPatternImagingObjectClassData;
  1702.  
  1703. #if PRAGMA_ALIGN_SUPPORTED
  1704. #  pragma options align=reset
  1705. #endif
  1706.  
  1707. #if !defined(HIPatternImagingObject_Class_Source) && !defined(SOM_Module_hiimagingobjects_Source)
  1708. #if PRAGMA_IMPORT_SUPPORTED
  1709. #pragma import list HIPatternImagingObjectClassData
  1710. #endif
  1711. #endif
  1712.  
  1713.  
  1714. /*
  1715.  * -- Typedefs for HIPatternImagingObject Method Procedures
  1716.  */
  1717. SOMEXTERN {
  1718. typedef OSStatus   (* SOMLINK somTD_HIPatternImagingObject_SetPattern)(HIPatternImagingObject *somSelf, Environment *ev,
  1719.         HIImageRef imageRef,
  1720.         PixPatHandle pattern);
  1721. typedef OSStatus   (* SOMLINK somTD_HIPatternImagingObject_GetPattern)(HIPatternImagingObject *somSelf, Environment *ev,
  1722.         ConstHIImageRef imageRef,
  1723.         PixPatHandle* pattern);
  1724.  
  1725. /*
  1726.  * -- Typedefs for Inherited Methods
  1727.  */
  1728. typedef OSStatus   (* SOMLINK somTD_HIPatternImagingObject_NewImage)(HIPatternImagingObject *somSelf, Environment *ev,
  1729.         HIImageRef* imageRefPtr);
  1730. typedef OSStatus   (* SOMLINK somTD_HIPatternImagingObject_GetNewImage)(HIPatternImagingObject *somSelf, Environment *ev,
  1731.         AESubDesc* initializer,
  1732.         HIImageRef* imageRefPtr);
  1733. typedef HIImageRef   (* SOMLINK somTD_HIPatternImagingObject_CloneImage)(HIPatternImagingObject *somSelf, Environment *ev,
  1734.         HIImageRef imageRef);
  1735. typedef OSStatus   (* SOMLINK somTD_HIPatternImagingObject_ReleaseImage)(HIPatternImagingObject *somSelf, Environment *ev,
  1736.         HIImageRef imageRef);
  1737. typedef ItemCount   (* SOMLINK somTD_HIPatternImagingObject_GetImageOwnerCount)(HIPatternImagingObject *somSelf, Environment *ev,
  1738.         ConstHIImageRef imageRef);
  1739. typedef OSStatus   (* SOMLINK somTD_HIPatternImagingObject_InitFromAERecord)(HIPatternImagingObject *somSelf, Environment *ev,
  1740.         HIImageRef imageRef,
  1741.         AESubDesc* dataForBaseClass,
  1742.         AESubDesc* dataForClass,
  1743.         HIAERecordDataFormat dataFormat);
  1744. typedef OSStatus   (* SOMLINK somTD_HIPatternImagingObject_WriteToAERecord)(HIPatternImagingObject *somSelf, Environment *ev,
  1745.         ConstHIImageRef imageRef,
  1746.         AERecord* dataForSubclass,
  1747.         AERecord* dataForClass,
  1748.         HIAERecordDataFormat dataFormat);
  1749. typedef OSStatus   (* SOMLINK somTD_HIPatternImagingObject_MeasureImage)(HIPatternImagingObject *somSelf, Environment *ev,
  1750.         ConstHIImageRef imageRef,
  1751.         CGrafPtr port,
  1752.         UInt32* widthPtr,
  1753.         UInt32* heightPtr,
  1754.         HIImageOptions measureOptions);
  1755. typedef OSStatus   (* SOMLINK somTD_HIPatternImagingObject_DrawImage)(HIPatternImagingObject *somSelf, Environment *ev,
  1756.         ConstHIImageRef imageRef,
  1757.         CGrafPtr port,
  1758.         Rect* contentRect,
  1759.         Rect* frameRect,
  1760.         HIImageOptions drawOptions);
  1761. typedef OSStatus   (* SOMLINK somTD_HIPatternImagingObject_DisposeImage)(HIPatternImagingObject *somSelf, Environment *ev,
  1762.         HIImageRef imageRef);
  1763. typedef HIImagingObject*   (* SOMLINK somTD_HIPatternImagingObject_GetHIImagingObject)(Environment *ev,
  1764.         HIImageType imageType);
  1765. typedef HIImageType   (* SOMLINK somTD_HIPatternImagingObject_GetImageType)(Environment *ev,
  1766.         ConstHIImageRef imageRef);
  1767. typedef OSStatus   (* SOMLINK somTD_HIPatternImagingObject_GetNewImageFromResource)(Environment *ev,
  1768.         ResID objectInitializerResourceID,
  1769.         HIImageRef* imageRefPtr);
  1770. typedef void   (* SOMLINK somTD_HIPatternImagingObject_somInit)(HIPatternImagingObject *somSelf);
  1771. typedef void   (* SOMLINK somTD_HIPatternImagingObject_somUninit)(HIPatternImagingObject *somSelf);
  1772. typedef SOMObject*   (* SOMLINK somTD_HIPatternImagingObject_somDuplicateReference)(HIPatternImagingObject *somSelf);
  1773. typedef boolean   (* SOMLINK somTD_HIPatternImagingObject_somCompareReference)(HIPatternImagingObject *somSelf,
  1774.         SOMObject* anObject);
  1775. typedef SOMObject*   (* SOMLINK somTD_HIPatternImagingObject_somRelease)(HIPatternImagingObject *somSelf);
  1776. typedef void   (* SOMLINK somTD_HIPatternImagingObject_somFree)(HIPatternImagingObject *somSelf);
  1777. typedef boolean   (* SOMLINK somTD_HIPatternImagingObject_somCanDelete)(HIPatternImagingObject *somSelf);
  1778. typedef SOMClass*   (* SOMLINK somTD_HIPatternImagingObject_somGetClass)(HIPatternImagingObject *somSelf);
  1779. typedef corbastring   (* SOMLINK somTD_HIPatternImagingObject_somGetClassName)(HIPatternImagingObject *somSelf);
  1780. typedef long   (* SOMLINK somTD_HIPatternImagingObject_somGetSize)(HIPatternImagingObject *somSelf);
  1781. typedef boolean   (* SOMLINK somTD_HIPatternImagingObject_somIsA)(HIPatternImagingObject *somSelf,
  1782.         SOMClass* aClassObj);
  1783. typedef boolean   (* SOMLINK somTD_HIPatternImagingObject_somRespondsTo)(HIPatternImagingObject *somSelf,
  1784.         somId mId);
  1785. typedef boolean   (* SOMLINK somTD_HIPatternImagingObject_somIsInstanceOf)(HIPatternImagingObject *somSelf,
  1786.         SOMClass* aClassObj);
  1787. typedef boolean   (* SOMLINK somTD_HIPatternImagingObject_somDispatch)(HIPatternImagingObject *somSelf,
  1788.         somToken* retValue,
  1789.         somId methodId,
  1790.         va_list ap);
  1791. typedef boolean   (* SOMLINK somTD_HIPatternImagingObject_somClassDispatch)(HIPatternImagingObject *somSelf,
  1792.         SOMClass* clsObj,
  1793.         somToken* retValue,
  1794.         somId methodId,
  1795.         va_list ap);
  1796. typedef boolean   (* SOMLINK somTD_HIPatternImagingObject_somCastObj)(HIPatternImagingObject *somSelf,
  1797.         SOMClass* cls);
  1798. typedef boolean   (* SOMLINK somTD_HIPatternImagingObject_somResetObj)(HIPatternImagingObject *somSelf);
  1799. typedef SOMObject*   (* SOMLINK somTD_HIPatternImagingObject_somPrintSelf)(HIPatternImagingObject *somSelf);
  1800. typedef void   (* SOMLINK somTD_HIPatternImagingObject_somDumpSelf)(HIPatternImagingObject *somSelf,
  1801.         long level);
  1802. typedef void   (* SOMLINK somTD_HIPatternImagingObject_somDumpSelfInt)(HIPatternImagingObject *somSelf,
  1803.         long level);
  1804. }
  1805.  
  1806. #endif /* HIPatternImagingObject_API */
  1807.  
  1808.  
  1809. /*
  1810.  * -- This emitter treats Method Tokens as Thunks by default.
  1811.  * -- Use the sc modifier "nothunks" to change this default
  1812.  */
  1813. #undef somresolve_
  1814. #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
  1815.  
  1816. /*
  1817.  * -- The C++ Wrapper Class for HIPatternImagingObject
  1818.  */
  1819. class HIPatternImagingObject : public HIImagingObject
  1820. {
  1821. public:
  1822.  
  1823. // HIPatternImagingObject::new registers use of the class object, and then uses somNew
  1824. // to allocate memory and load the object method table pointer. 
  1825. void *operator new(size_t size)
  1826. {
  1827.     SOM_IgnoreWarning(size);
  1828.     // Allocate memory using the default allocator for HIPatternImagingObject, and
  1829.     // clear mem & set method table pointer, call basic initialization
  1830.     return (void*) somNewObject(HIPatternImagingObject);
  1831. }
  1832.  
  1833. // HIPatternImagingObject::delete uses the default deallocator for the object's class.
  1834. void operator delete(void * obj)
  1835. {
  1836.     if (obj) {
  1837.         SOM_Resolve(obj,SOMObject,somFree)
  1838.            ( (SOMObject*) obj );
  1839.     }
  1840. }
  1841.  
  1842. /* method: SetPattern */
  1843. OSStatus   SetPattern(Environment *ev,
  1844.         HIImageRef imageRef,
  1845.         PixPatHandle pattern)
  1846. {
  1847.    return SOM_ResolveD(this,HIPatternImagingObject,HIPatternImagingObject,SetPattern)
  1848.     (this,ev,imageRef,pattern);
  1849. }
  1850.  
  1851. /* method: GetPattern */
  1852. OSStatus   GetPattern(Environment *ev,
  1853.         ConstHIImageRef imageRef,
  1854.         PixPatHandle* pattern)
  1855. {
  1856.    return SOM_ResolveD(this,HIPatternImagingObject,HIPatternImagingObject,GetPattern)
  1857.     (this,ev,imageRef,pattern);
  1858. }
  1859.  
  1860.  
  1861. /*
  1862.  * -- Inherited methods
  1863.  */
  1864. /* method: NewImage */
  1865. OSStatus   NewImage(Environment *ev,
  1866.         HIImageRef* imageRefPtr)
  1867. {
  1868.    return SOM_ResolveD(this,HIPatternImagingObject,HIImagingObject,NewImage)
  1869.     (this,ev,imageRefPtr);
  1870. }
  1871.  
  1872. /* method: GetNewImage */
  1873. OSStatus   GetNewImage(Environment *ev,
  1874.         AESubDesc* initializer,
  1875.         HIImageRef* imageRefPtr)
  1876. {
  1877.    return SOM_ResolveD(this,HIPatternImagingObject,HIImagingObject,GetNewImage)
  1878.     (this,ev,initializer,imageRefPtr);
  1879. }
  1880.  
  1881. /* method: CloneImage */
  1882. HIImageRef   CloneImage(Environment *ev,
  1883.         HIImageRef imageRef)
  1884. {
  1885.    return SOM_ResolveD(this,HIPatternImagingObject,HIImagingObject,CloneImage)
  1886.     (this,ev,imageRef);
  1887. }
  1888.  
  1889. /* method: ReleaseImage */
  1890. OSStatus   ReleaseImage(Environment *ev,
  1891.         HIImageRef imageRef)
  1892. {
  1893.    return SOM_ResolveD(this,HIPatternImagingObject,HIImagingObject,ReleaseImage)
  1894.     (this,ev,imageRef);
  1895. }
  1896.  
  1897. /* method: GetImageOwnerCount */
  1898. ItemCount   GetImageOwnerCount(Environment *ev,
  1899.         ConstHIImageRef imageRef)
  1900. {
  1901.    return SOM_ResolveD(this,HIPatternImagingObject,HIImagingObject,GetImageOwnerCount)
  1902.     (this,ev,imageRef);
  1903. }
  1904.  
  1905. /* method: InitFromAERecord */
  1906. OSStatus   InitFromAERecord(Environment *ev,
  1907.         HIImageRef imageRef,
  1908.         AESubDesc* dataForBaseClass,
  1909.         AESubDesc* dataForClass,
  1910.         HIAERecordDataFormat dataFormat)
  1911. {
  1912.    return SOM_ResolveD(this,HIPatternImagingObject,HIImagingObject,InitFromAERecord)
  1913.     (this,ev,imageRef,dataForBaseClass,dataForClass,dataFormat);
  1914. }
  1915.  
  1916. /* method: WriteToAERecord */
  1917. OSStatus   WriteToAERecord(Environment *ev,
  1918.         ConstHIImageRef imageRef,
  1919.         AERecord* dataForSubclass,
  1920.         AERecord* dataForClass,
  1921.         HIAERecordDataFormat dataFormat)
  1922. {
  1923.    return SOM_ResolveD(this,HIPatternImagingObject,HIImagingObject,WriteToAERecord)
  1924.     (this,ev,imageRef,dataForSubclass,dataForClass,dataFormat);
  1925. }
  1926.  
  1927. /* method: MeasureImage */
  1928. OSStatus   MeasureImage(Environment *ev,
  1929.         ConstHIImageRef imageRef,
  1930.         CGrafPtr port,
  1931.         UInt32* widthPtr,
  1932.         UInt32* heightPtr,
  1933.         HIImageOptions measureOptions)
  1934. {
  1935.    return SOM_ResolveD(this,HIPatternImagingObject,HIImagingObject,MeasureImage)
  1936.     (this,ev,imageRef,port,widthPtr,heightPtr,measureOptions);
  1937. }
  1938.  
  1939. /* method: DrawImage */
  1940. OSStatus   DrawImage(Environment *ev,
  1941.         ConstHIImageRef imageRef,
  1942.         CGrafPtr port,
  1943.         Rect* contentRect,
  1944.         Rect* frameRect,
  1945.         HIImageOptions drawOptions)
  1946. {
  1947.    return SOM_ResolveD(this,HIPatternImagingObject,HIImagingObject,DrawImage)
  1948.     (this,ev,imageRef,port,contentRect,frameRect,drawOptions);
  1949. }
  1950.  
  1951. /* method: DisposeImage */
  1952. OSStatus   DisposeImage(Environment *ev,
  1953.         HIImageRef imageRef)
  1954. {
  1955.    return SOM_ResolveD(this,HIPatternImagingObject,HIImagingObject,DisposeImage)
  1956.     (this,ev,imageRef);
  1957. }
  1958.  
  1959. /* noself procedure: GetHIImagingObject */
  1960. static HIImagingObject*   GetHIImagingObject(Environment *ev,
  1961.         HIImageType imageType)
  1962. {
  1963. return ((somTD_HIPatternImagingObject_GetHIImagingObject)HIImagingObjectClassData.GetHIImagingObject)
  1964.     (ev,imageType);
  1965. }
  1966.  
  1967. /* noself procedure: GetImageType */
  1968. static HIImageType   GetImageType(Environment *ev,
  1969.         ConstHIImageRef imageRef)
  1970. {
  1971. return ((somTD_HIPatternImagingObject_GetImageType)HIImagingObjectClassData.GetImageType)
  1972.     (ev,imageRef);
  1973. }
  1974.  
  1975. /* noself procedure: GetNewImageFromResource */
  1976. static OSStatus   GetNewImageFromResource(Environment *ev,
  1977.         ResID objectInitializerResourceID,
  1978.         HIImageRef* imageRefPtr)
  1979. {
  1980. return ((somTD_HIPatternImagingObject_GetNewImageFromResource)HIImagingObjectClassData.GetNewImageFromResource)
  1981.     (ev,objectInitializerResourceID,imageRefPtr);
  1982. }
  1983.  
  1984. /* method: somInit */
  1985. void   somInit()
  1986. {
  1987.    SOM_ResolveD(this,HIPatternImagingObject,SOMObject,somInit)
  1988.     (this);
  1989. }
  1990.  
  1991. /* method: somUninit */
  1992. void   somUninit()
  1993. {
  1994.    SOM_ResolveD(this,HIPatternImagingObject,SOMObject,somUninit)
  1995.     (this);
  1996. }
  1997.  
  1998. /* method: somDuplicateReference */
  1999. SOMObject*   somDuplicateReference()
  2000. {
  2001.    return SOM_ResolveD(this,HIPatternImagingObject,SOMObject,somDuplicateReference)
  2002.     (this);
  2003. }
  2004.  
  2005. /* method: somCompareReference */
  2006. boolean   somCompareReference(SOMObject* anObject)
  2007. {
  2008.    return SOM_ResolveD(this,HIPatternImagingObject,SOMObject,somCompareReference)
  2009.     (this,anObject);
  2010. }
  2011.  
  2012. /* method: somRelease */
  2013. SOMObject*   somRelease()
  2014. {
  2015.    return SOM_ResolveD(this,HIPatternImagingObject,SOMObject,somRelease)
  2016.     (this);
  2017. }
  2018.  
  2019. /* method: somFree */
  2020. void   somFree()
  2021. {
  2022.    SOM_ResolveD(this,HIPatternImagingObject,SOMObject,somFree)
  2023.     (this);
  2024. }
  2025.  
  2026. /* method: somCanDelete */
  2027. boolean   somCanDelete()
  2028. {
  2029.    return SOM_ResolveD(this,HIPatternImagingObject,SOMObject,somCanDelete)
  2030.     (this);
  2031. }
  2032.  
  2033. /* method: somGetClass */
  2034. SOMClass*   somGetClass()
  2035. {
  2036.    return SOM_ResolveD(this,HIPatternImagingObject,SOMObject,somGetClass)
  2037.     (this);
  2038. }
  2039.  
  2040. /* method: somGetClassName */
  2041. corbastring   somGetClassName()
  2042. {
  2043.    return SOM_ResolveD(this,HIPatternImagingObject,SOMObject,somGetClassName)
  2044.     (this);
  2045. }
  2046.  
  2047. /* method: somGetSize */
  2048. long   somGetSize()
  2049. {
  2050.    return SOM_ResolveD(this,HIPatternImagingObject,SOMObject,somGetSize)
  2051.     (this);
  2052. }
  2053.  
  2054. /* method: somIsA */
  2055. boolean   somIsA(SOMClass* aClassObj)
  2056. {
  2057.    return SOM_ResolveD(this,HIPatternImagingObject,SOMObject,somIsA)
  2058.     (this,aClassObj);
  2059. }
  2060.  
  2061. /* method: somRespondsTo */
  2062. boolean   somRespondsTo(somId mId)
  2063. {
  2064.    return SOM_ResolveD(this,HIPatternImagingObject,SOMObject,somRespondsTo)
  2065.     (this,mId);
  2066. }
  2067.  
  2068. /* method: somIsInstanceOf */
  2069. boolean   somIsInstanceOf(SOMClass* aClassObj)
  2070. {
  2071.    return SOM_ResolveD(this,HIPatternImagingObject,SOMObject,somIsInstanceOf)
  2072.     (this,aClassObj);
  2073. }
  2074.  
  2075. /* va_list method: somDispatch */
  2076. /* the va_list invocation form */
  2077. boolean   HIPatternImagingObject_somDispatch(somToken* retValue,
  2078.         somId methodId,
  2079.         va_list ap)
  2080. {
  2081.    return SOM_ResolveD(this,HIPatternImagingObject,SOMObject,somDispatch)
  2082.     (this,retValue,methodId,ap);
  2083. }
  2084.  
  2085. /* the varargs invocation form */
  2086. boolean   somDispatch(somToken* retValue,
  2087.         somId methodId,
  2088.         ...)
  2089. {
  2090.    va_list ap;
  2091.    va_start(ap, methodId);
  2092.       boolean __somResult = 
  2093.       (boolean) SOM_ResolveD(this,HIPatternImagingObject,SOMObject,somDispatch)
  2094.     (this,retValue,methodId,ap);
  2095.    va_end(ap);
  2096.    return __somResult;
  2097. }
  2098.  
  2099. /* va_list method: somClassDispatch */
  2100. /* the va_list invocation form */
  2101. boolean   HIPatternImagingObject_somClassDispatch(SOMClass* clsObj,
  2102.         somToken* retValue,
  2103.         somId methodId,
  2104.         va_list ap)
  2105. {
  2106.    return SOM_ResolveD(this,HIPatternImagingObject,SOMObject,somClassDispatch)
  2107.     (this,clsObj,retValue,methodId,ap);
  2108. }
  2109.  
  2110. /* the varargs invocation form */
  2111. boolean   somClassDispatch(SOMClass* clsObj,
  2112.         somToken* retValue,
  2113.         somId methodId,
  2114.         ...)
  2115. {
  2116.    va_list ap;
  2117.    va_start(ap, methodId);
  2118.       boolean __somResult = 
  2119.       (boolean) SOM_ResolveD(this,HIPatternImagingObject,SOMObject,somClassDispatch)
  2120.     (this,clsObj,retValue,methodId,ap);
  2121.    va_end(ap);
  2122.    return __somResult;
  2123. }
  2124.  
  2125. /* method: somCastObj */
  2126. boolean   somCastObj(SOMClass* cls)
  2127. {
  2128.    return SOM_ResolveD(this,HIPatternImagingObject,SOMObject,somCastObj)
  2129.     (this,cls);
  2130. }
  2131.  
  2132. /* method: somResetObj */
  2133. boolean   somResetObj()
  2134. {
  2135.    return SOM_ResolveD(this,HIPatternImagingObject,SOMObject,somResetObj)
  2136.     (this);
  2137. }
  2138.  
  2139. /* method: somPrintSelf */
  2140. SOMObject*   somPrintSelf()
  2141. {
  2142.    return SOM_ResolveD(this,HIPatternImagingObject,SOMObject,somPrintSelf)
  2143.     (this);
  2144. }
  2145.  
  2146. /* method: somDumpSelf */
  2147. void   somDumpSelf(long level)
  2148. {
  2149.    SOM_ResolveD(this,HIPatternImagingObject,SOMObject,somDumpSelf)
  2150.     (this,level);
  2151. }
  2152.  
  2153. /* method: somDumpSelfInt */
  2154. void   somDumpSelfInt(long level)
  2155. {
  2156.    SOM_ResolveD(this,HIPatternImagingObject,SOMObject,somDumpSelfInt)
  2157.     (this,level);
  2158. }
  2159.  
  2160. };   /* HIPatternImagingObject */
  2161.  
  2162.  
  2163.  
  2164. #endif       /* SOM_HIPatternImagingObject_xh */
  2165.  
  2166. #ifndef SOM_HIPictureImagingObject_xh
  2167. #define SOM_HIPictureImagingObject_xh
  2168.  
  2169. class HIPictureImagingObject;
  2170.  
  2171. #define HIPictureImagingObject_MajorVersion 0
  2172. #define HIPictureImagingObject_MinorVersion 0
  2173.  
  2174. /*
  2175.  * Passthru lines: File: "C.xh", "before"
  2176.  */
  2177. #include <Collections.h>
  2178. #include <Quickdraw.h>
  2179. #include <TextEdit.h>
  2180. #include <TextObjects.h>
  2181. #include <Types.h>
  2182. #include <HIObjectTypes.h>
  2183. #include <HIImagingObjectTypes.h>
  2184.  
  2185. /* C++ SOM defs */
  2186. #include <somcls.xh>
  2187. #include <somcm.xh>
  2188.  
  2189. /* C++ parent defs */
  2190. #ifndef SOM_HIImagingObject_xh
  2191. #include <HIImagingObjects.xh>
  2192. #endif
  2193.  
  2194. #ifndef HIPictureImagingObject_API
  2195. #define HIPictureImagingObject_API
  2196. /*
  2197.  * -- The Class API
  2198.  */
  2199.  
  2200. /*
  2201.  * Start of user-defined types:
  2202.  */
  2203.  
  2204. /*
  2205.  * End of user-defined types.
  2206.  */
  2207.  
  2208. #ifdef OLDIBMSOMAPISUPPORT
  2209. #define HIPictureImagingObjectCClassData HIPictureImagingObjectClassData
  2210. #define HIPictureImagingObjectNewClass(major,minor) somNewVersionedClassReference(HIPictureImagingObject,major,minor)
  2211. #endif
  2212.  
  2213. /* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
  2214. #define HIPictureImagingObjectMetaClass SOMClass
  2215.  
  2216. #if PRAGMA_ALIGN_SUPPORTED
  2217. #  pragma options align=power
  2218. #endif
  2219.  
  2220. /* The API to the HIPictureImagingObject class object, and the methods it introduces. */
  2221. SOMEXTERN struct HIPictureImagingObjectClassDataStructure {
  2222. #ifdef OLDIBMSOMAPISUPPORT
  2223.     SOMClass            *classObject;    /* always zero, use somNewClassReference instead */
  2224. #else
  2225.     long zero;
  2226. #endif
  2227.     somStaticClassInfo *sci;
  2228.     somDToken        instanceDataToken;
  2229.     long reserved [3];
  2230.     somMToken SetPicture;
  2231.     somMToken GetPicture;
  2232. } SOMDLINK HIPictureImagingObjectClassData;
  2233.  
  2234. #if PRAGMA_ALIGN_SUPPORTED
  2235. #  pragma options align=reset
  2236. #endif
  2237.  
  2238. #if !defined(HIPictureImagingObject_Class_Source) && !defined(SOM_Module_hiimagingobjects_Source)
  2239. #if PRAGMA_IMPORT_SUPPORTED
  2240. #pragma import list HIPictureImagingObjectClassData
  2241. #endif
  2242. #endif
  2243.  
  2244.  
  2245. /*
  2246.  * -- Typedefs for HIPictureImagingObject Method Procedures
  2247.  */
  2248. SOMEXTERN {
  2249. typedef OSStatus   (* SOMLINK somTD_HIPictureImagingObject_SetPicture)(HIPictureImagingObject *somSelf, Environment *ev,
  2250.         HIImageRef imageRef,
  2251.         PicHandle picture);
  2252. typedef OSStatus   (* SOMLINK somTD_HIPictureImagingObject_GetPicture)(HIPictureImagingObject *somSelf, Environment *ev,
  2253.         ConstHIImageRef imageRef,
  2254.         PicHandle* picturePtr);
  2255.  
  2256. /*
  2257.  * -- Typedefs for Inherited Methods
  2258.  */
  2259. typedef OSStatus   (* SOMLINK somTD_HIPictureImagingObject_NewImage)(HIPictureImagingObject *somSelf, Environment *ev,
  2260.         HIImageRef* imageRefPtr);
  2261. typedef OSStatus   (* SOMLINK somTD_HIPictureImagingObject_GetNewImage)(HIPictureImagingObject *somSelf, Environment *ev,
  2262.         AESubDesc* initializer,
  2263.         HIImageRef* imageRefPtr);
  2264. typedef HIImageRef   (* SOMLINK somTD_HIPictureImagingObject_CloneImage)(HIPictureImagingObject *somSelf, Environment *ev,
  2265.         HIImageRef imageRef);
  2266. typedef OSStatus   (* SOMLINK somTD_HIPictureImagingObject_ReleaseImage)(HIPictureImagingObject *somSelf, Environment *ev,
  2267.         HIImageRef imageRef);
  2268. typedef ItemCount   (* SOMLINK somTD_HIPictureImagingObject_GetImageOwnerCount)(HIPictureImagingObject *somSelf, Environment *ev,
  2269.         ConstHIImageRef imageRef);
  2270. typedef OSStatus   (* SOMLINK somTD_HIPictureImagingObject_InitFromAERecord)(HIPictureImagingObject *somSelf, Environment *ev,
  2271.         HIImageRef imageRef,
  2272.         AESubDesc* dataForBaseClass,
  2273.         AESubDesc* dataForClass,
  2274.         HIAERecordDataFormat dataFormat);
  2275. typedef OSStatus   (* SOMLINK somTD_HIPictureImagingObject_WriteToAERecord)(HIPictureImagingObject *somSelf, Environment *ev,
  2276.         ConstHIImageRef imageRef,
  2277.         AERecord* dataForSubclass,
  2278.         AERecord* dataForClass,
  2279.         HIAERecordDataFormat dataFormat);
  2280. typedef OSStatus   (* SOMLINK somTD_HIPictureImagingObject_MeasureImage)(HIPictureImagingObject *somSelf, Environment *ev,
  2281.         ConstHIImageRef imageRef,
  2282.         CGrafPtr port,
  2283.         UInt32* widthPtr,
  2284.         UInt32* heightPtr,
  2285.         HIImageOptions measureOptions);
  2286. typedef OSStatus   (* SOMLINK somTD_HIPictureImagingObject_DrawImage)(HIPictureImagingObject *somSelf, Environment *ev,
  2287.         ConstHIImageRef imageRef,
  2288.         CGrafPtr port,
  2289.         Rect* contentRect,
  2290.         Rect* frameRect,
  2291.         HIImageOptions drawOptions);
  2292. typedef OSStatus   (* SOMLINK somTD_HIPictureImagingObject_DisposeImage)(HIPictureImagingObject *somSelf, Environment *ev,
  2293.         HIImageRef imageRef);
  2294. typedef HIImagingObject*   (* SOMLINK somTD_HIPictureImagingObject_GetHIImagingObject)(Environment *ev,
  2295.         HIImageType imageType);
  2296. typedef HIImageType   (* SOMLINK somTD_HIPictureImagingObject_GetImageType)(Environment *ev,
  2297.         ConstHIImageRef imageRef);
  2298. typedef OSStatus   (* SOMLINK somTD_HIPictureImagingObject_GetNewImageFromResource)(Environment *ev,
  2299.         ResID objectInitializerResourceID,
  2300.         HIImageRef* imageRefPtr);
  2301. typedef void   (* SOMLINK somTD_HIPictureImagingObject_somInit)(HIPictureImagingObject *somSelf);
  2302. typedef void   (* SOMLINK somTD_HIPictureImagingObject_somUninit)(HIPictureImagingObject *somSelf);
  2303. typedef SOMObject*   (* SOMLINK somTD_HIPictureImagingObject_somDuplicateReference)(HIPictureImagingObject *somSelf);
  2304. typedef boolean   (* SOMLINK somTD_HIPictureImagingObject_somCompareReference)(HIPictureImagingObject *somSelf,
  2305.         SOMObject* anObject);
  2306. typedef SOMObject*   (* SOMLINK somTD_HIPictureImagingObject_somRelease)(HIPictureImagingObject *somSelf);
  2307. typedef void   (* SOMLINK somTD_HIPictureImagingObject_somFree)(HIPictureImagingObject *somSelf);
  2308. typedef boolean   (* SOMLINK somTD_HIPictureImagingObject_somCanDelete)(HIPictureImagingObject *somSelf);
  2309. typedef SOMClass*   (* SOMLINK somTD_HIPictureImagingObject_somGetClass)(HIPictureImagingObject *somSelf);
  2310. typedef corbastring   (* SOMLINK somTD_HIPictureImagingObject_somGetClassName)(HIPictureImagingObject *somSelf);
  2311. typedef long   (* SOMLINK somTD_HIPictureImagingObject_somGetSize)(HIPictureImagingObject *somSelf);
  2312. typedef boolean   (* SOMLINK somTD_HIPictureImagingObject_somIsA)(HIPictureImagingObject *somSelf,
  2313.         SOMClass* aClassObj);
  2314. typedef boolean   (* SOMLINK somTD_HIPictureImagingObject_somRespondsTo)(HIPictureImagingObject *somSelf,
  2315.         somId mId);
  2316. typedef boolean   (* SOMLINK somTD_HIPictureImagingObject_somIsInstanceOf)(HIPictureImagingObject *somSelf,
  2317.         SOMClass* aClassObj);
  2318. typedef boolean   (* SOMLINK somTD_HIPictureImagingObject_somDispatch)(HIPictureImagingObject *somSelf,
  2319.         somToken* retValue,
  2320.         somId methodId,
  2321.         va_list ap);
  2322. typedef boolean   (* SOMLINK somTD_HIPictureImagingObject_somClassDispatch)(HIPictureImagingObject *somSelf,
  2323.         SOMClass* clsObj,
  2324.         somToken* retValue,
  2325.         somId methodId,
  2326.         va_list ap);
  2327. typedef boolean   (* SOMLINK somTD_HIPictureImagingObject_somCastObj)(HIPictureImagingObject *somSelf,
  2328.         SOMClass* cls);
  2329. typedef boolean   (* SOMLINK somTD_HIPictureImagingObject_somResetObj)(HIPictureImagingObject *somSelf);
  2330. typedef SOMObject*   (* SOMLINK somTD_HIPictureImagingObject_somPrintSelf)(HIPictureImagingObject *somSelf);
  2331. typedef void   (* SOMLINK somTD_HIPictureImagingObject_somDumpSelf)(HIPictureImagingObject *somSelf,
  2332.         long level);
  2333. typedef void   (* SOMLINK somTD_HIPictureImagingObject_somDumpSelfInt)(HIPictureImagingObject *somSelf,
  2334.         long level);
  2335. }
  2336.  
  2337. #endif /* HIPictureImagingObject_API */
  2338.  
  2339.  
  2340. /*
  2341.  * -- This emitter treats Method Tokens as Thunks by default.
  2342.  * -- Use the sc modifier "nothunks" to change this default
  2343.  */
  2344. #undef somresolve_
  2345. #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
  2346.  
  2347. /*
  2348.  * -- The C++ Wrapper Class for HIPictureImagingObject
  2349.  */
  2350. class HIPictureImagingObject : public HIImagingObject
  2351. {
  2352. public:
  2353.  
  2354. // HIPictureImagingObject::new registers use of the class object, and then uses somNew
  2355. // to allocate memory and load the object method table pointer. 
  2356. void *operator new(size_t size)
  2357. {
  2358.     SOM_IgnoreWarning(size);
  2359.     // Allocate memory using the default allocator for HIPictureImagingObject, and
  2360.     // clear mem & set method table pointer, call basic initialization
  2361.     return (void*) somNewObject(HIPictureImagingObject);
  2362. }
  2363.  
  2364. // HIPictureImagingObject::delete uses the default deallocator for the object's class.
  2365. void operator delete(void * obj)
  2366. {
  2367.     if (obj) {
  2368.         SOM_Resolve(obj,SOMObject,somFree)
  2369.            ( (SOMObject*) obj );
  2370.     }
  2371. }
  2372.  
  2373. /* method: SetPicture */
  2374. OSStatus   SetPicture(Environment *ev,
  2375.         HIImageRef imageRef,
  2376.         PicHandle picture)
  2377. {
  2378.    return SOM_ResolveD(this,HIPictureImagingObject,HIPictureImagingObject,SetPicture)
  2379.     (this,ev,imageRef,picture);
  2380. }
  2381.  
  2382. /* method: GetPicture */
  2383. OSStatus   GetPicture(Environment *ev,
  2384.         ConstHIImageRef imageRef,
  2385.         PicHandle* picturePtr)
  2386. {
  2387.    return SOM_ResolveD(this,HIPictureImagingObject,HIPictureImagingObject,GetPicture)
  2388.     (this,ev,imageRef,picturePtr);
  2389. }
  2390.  
  2391.  
  2392. /*
  2393.  * -- Inherited methods
  2394.  */
  2395. /* method: NewImage */
  2396. OSStatus   NewImage(Environment *ev,
  2397.         HIImageRef* imageRefPtr)
  2398. {
  2399.    return SOM_ResolveD(this,HIPictureImagingObject,HIImagingObject,NewImage)
  2400.     (this,ev,imageRefPtr);
  2401. }
  2402.  
  2403. /* method: GetNewImage */
  2404. OSStatus   GetNewImage(Environment *ev,
  2405.         AESubDesc* initializer,
  2406.         HIImageRef* imageRefPtr)
  2407. {
  2408.    return SOM_ResolveD(this,HIPictureImagingObject,HIImagingObject,GetNewImage)
  2409.     (this,ev,initializer,imageRefPtr);
  2410. }
  2411.  
  2412. /* method: CloneImage */
  2413. HIImageRef   CloneImage(Environment *ev,
  2414.         HIImageRef imageRef)
  2415. {
  2416.    return SOM_ResolveD(this,HIPictureImagingObject,HIImagingObject,CloneImage)
  2417.     (this,ev,imageRef);
  2418. }
  2419.  
  2420. /* method: ReleaseImage */
  2421. OSStatus   ReleaseImage(Environment *ev,
  2422.         HIImageRef imageRef)
  2423. {
  2424.    return SOM_ResolveD(this,HIPictureImagingObject,HIImagingObject,ReleaseImage)
  2425.     (this,ev,imageRef);
  2426. }
  2427.  
  2428. /* method: GetImageOwnerCount */
  2429. ItemCount   GetImageOwnerCount(Environment *ev,
  2430.         ConstHIImageRef imageRef)
  2431. {
  2432.    return SOM_ResolveD(this,HIPictureImagingObject,HIImagingObject,GetImageOwnerCount)
  2433.     (this,ev,imageRef);
  2434. }
  2435.  
  2436. /* method: InitFromAERecord */
  2437. OSStatus   InitFromAERecord(Environment *ev,
  2438.         HIImageRef imageRef,
  2439.         AESubDesc* dataForBaseClass,
  2440.         AESubDesc* dataForClass,
  2441.         HIAERecordDataFormat dataFormat)
  2442. {
  2443.    return SOM_ResolveD(this,HIPictureImagingObject,HIImagingObject,InitFromAERecord)
  2444.     (this,ev,imageRef,dataForBaseClass,dataForClass,dataFormat);
  2445. }
  2446.  
  2447. /* method: WriteToAERecord */
  2448. OSStatus   WriteToAERecord(Environment *ev,
  2449.         ConstHIImageRef imageRef,
  2450.         AERecord* dataForSubclass,
  2451.         AERecord* dataForClass,
  2452.         HIAERecordDataFormat dataFormat)
  2453. {
  2454.    return SOM_ResolveD(this,HIPictureImagingObject,HIImagingObject,WriteToAERecord)
  2455.     (this,ev,imageRef,dataForSubclass,dataForClass,dataFormat);
  2456. }
  2457.  
  2458. /* method: MeasureImage */
  2459. OSStatus   MeasureImage(Environment *ev,
  2460.         ConstHIImageRef imageRef,
  2461.         CGrafPtr port,
  2462.         UInt32* widthPtr,
  2463.         UInt32* heightPtr,
  2464.         HIImageOptions measureOptions)
  2465. {
  2466.    return SOM_ResolveD(this,HIPictureImagingObject,HIImagingObject,MeasureImage)
  2467.     (this,ev,imageRef,port,widthPtr,heightPtr,measureOptions);
  2468. }
  2469.  
  2470. /* method: DrawImage */
  2471. OSStatus   DrawImage(Environment *ev,
  2472.         ConstHIImageRef imageRef,
  2473.         CGrafPtr port,
  2474.         Rect* contentRect,
  2475.         Rect* frameRect,
  2476.         HIImageOptions drawOptions)
  2477. {
  2478.    return SOM_ResolveD(this,HIPictureImagingObject,HIImagingObject,DrawImage)
  2479.     (this,ev,imageRef,port,contentRect,frameRect,drawOptions);
  2480. }
  2481.  
  2482. /* method: DisposeImage */
  2483. OSStatus   DisposeImage(Environment *ev,
  2484.         HIImageRef imageRef)
  2485. {
  2486.    return SOM_ResolveD(this,HIPictureImagingObject,HIImagingObject,DisposeImage)
  2487.     (this,ev,imageRef);
  2488. }
  2489.  
  2490. /* noself procedure: GetHIImagingObject */
  2491. static HIImagingObject*   GetHIImagingObject(Environment *ev,
  2492.         HIImageType imageType)
  2493. {
  2494. return ((somTD_HIPictureImagingObject_GetHIImagingObject)HIImagingObjectClassData.GetHIImagingObject)
  2495.     (ev,imageType);
  2496. }
  2497.  
  2498. /* noself procedure: GetImageType */
  2499. static HIImageType   GetImageType(Environment *ev,
  2500.         ConstHIImageRef imageRef)
  2501. {
  2502. return ((somTD_HIPictureImagingObject_GetImageType)HIImagingObjectClassData.GetImageType)
  2503.     (ev,imageRef);
  2504. }
  2505.  
  2506. /* noself procedure: GetNewImageFromResource */
  2507. static OSStatus   GetNewImageFromResource(Environment *ev,
  2508.         ResID objectInitializerResourceID,
  2509.         HIImageRef* imageRefPtr)
  2510. {
  2511. return ((somTD_HIPictureImagingObject_GetNewImageFromResource)HIImagingObjectClassData.GetNewImageFromResource)
  2512.     (ev,objectInitializerResourceID,imageRefPtr);
  2513. }
  2514.  
  2515. /* method: somInit */
  2516. void   somInit()
  2517. {
  2518.    SOM_ResolveD(this,HIPictureImagingObject,SOMObject,somInit)
  2519.     (this);
  2520. }
  2521.  
  2522. /* method: somUninit */
  2523. void   somUninit()
  2524. {
  2525.    SOM_ResolveD(this,HIPictureImagingObject,SOMObject,somUninit)
  2526.     (this);
  2527. }
  2528.  
  2529. /* method: somDuplicateReference */
  2530. SOMObject*   somDuplicateReference()
  2531. {
  2532.    return SOM_ResolveD(this,HIPictureImagingObject,SOMObject,somDuplicateReference)
  2533.     (this);
  2534. }
  2535.  
  2536. /* method: somCompareReference */
  2537. boolean   somCompareReference(SOMObject* anObject)
  2538. {
  2539.    return SOM_ResolveD(this,HIPictureImagingObject,SOMObject,somCompareReference)
  2540.     (this,anObject);
  2541. }
  2542.  
  2543. /* method: somRelease */
  2544. SOMObject*   somRelease()
  2545. {
  2546.    return SOM_ResolveD(this,HIPictureImagingObject,SOMObject,somRelease)
  2547.     (this);
  2548. }
  2549.  
  2550. /* method: somFree */
  2551. void   somFree()
  2552. {
  2553.    SOM_ResolveD(this,HIPictureImagingObject,SOMObject,somFree)
  2554.     (this);
  2555. }
  2556.  
  2557. /* method: somCanDelete */
  2558. boolean   somCanDelete()
  2559. {
  2560.    return SOM_ResolveD(this,HIPictureImagingObject,SOMObject,somCanDelete)
  2561.     (this);
  2562. }
  2563.  
  2564. /* method: somGetClass */
  2565. SOMClass*   somGetClass()
  2566. {
  2567.    return SOM_ResolveD(this,HIPictureImagingObject,SOMObject,somGetClass)
  2568.     (this);
  2569. }
  2570.  
  2571. /* method: somGetClassName */
  2572. corbastring   somGetClassName()
  2573. {
  2574.    return SOM_ResolveD(this,HIPictureImagingObject,SOMObject,somGetClassName)
  2575.     (this);
  2576. }
  2577.  
  2578. /* method: somGetSize */
  2579. long   somGetSize()
  2580. {
  2581.    return SOM_ResolveD(this,HIPictureImagingObject,SOMObject,somGetSize)
  2582.     (this);
  2583. }
  2584.  
  2585. /* method: somIsA */
  2586. boolean   somIsA(SOMClass* aClassObj)
  2587. {
  2588.    return SOM_ResolveD(this,HIPictureImagingObject,SOMObject,somIsA)
  2589.     (this,aClassObj);
  2590. }
  2591.  
  2592. /* method: somRespondsTo */
  2593. boolean   somRespondsTo(somId mId)
  2594. {
  2595.    return SOM_ResolveD(this,HIPictureImagingObject,SOMObject,somRespondsTo)
  2596.     (this,mId);
  2597. }
  2598.  
  2599. /* method: somIsInstanceOf */
  2600. boolean   somIsInstanceOf(SOMClass* aClassObj)
  2601. {
  2602.    return SOM_ResolveD(this,HIPictureImagingObject,SOMObject,somIsInstanceOf)
  2603.     (this,aClassObj);
  2604. }
  2605.  
  2606. /* va_list method: somDispatch */
  2607. /* the va_list invocation form */
  2608. boolean   HIPictureImagingObject_somDispatch(somToken* retValue,
  2609.         somId methodId,
  2610.         va_list ap)
  2611. {
  2612.    return SOM_ResolveD(this,HIPictureImagingObject,SOMObject,somDispatch)
  2613.     (this,retValue,methodId,ap);
  2614. }
  2615.  
  2616. /* the varargs invocation form */
  2617. boolean   somDispatch(somToken* retValue,
  2618.         somId methodId,
  2619.         ...)
  2620. {
  2621.    va_list ap;
  2622.    va_start(ap, methodId);
  2623.       boolean __somResult = 
  2624.       (boolean) SOM_ResolveD(this,HIPictureImagingObject,SOMObject,somDispatch)
  2625.     (this,retValue,methodId,ap);
  2626.    va_end(ap);
  2627.    return __somResult;
  2628. }
  2629.  
  2630. /* va_list method: somClassDispatch */
  2631. /* the va_list invocation form */
  2632. boolean   HIPictureImagingObject_somClassDispatch(SOMClass* clsObj,
  2633.         somToken* retValue,
  2634.         somId methodId,
  2635.         va_list ap)
  2636. {
  2637.    return SOM_ResolveD(this,HIPictureImagingObject,SOMObject,somClassDispatch)
  2638.     (this,clsObj,retValue,methodId,ap);
  2639. }
  2640.  
  2641. /* the varargs invocation form */
  2642. boolean   somClassDispatch(SOMClass* clsObj,
  2643.         somToken* retValue,
  2644.         somId methodId,
  2645.         ...)
  2646. {
  2647.    va_list ap;
  2648.    va_start(ap, methodId);
  2649.       boolean __somResult = 
  2650.       (boolean) SOM_ResolveD(this,HIPictureImagingObject,SOMObject,somClassDispatch)
  2651.     (this,clsObj,retValue,methodId,ap);
  2652.    va_end(ap);
  2653.    return __somResult;
  2654. }
  2655.  
  2656. /* method: somCastObj */
  2657. boolean   somCastObj(SOMClass* cls)
  2658. {
  2659.    return SOM_ResolveD(this,HIPictureImagingObject,SOMObject,somCastObj)
  2660.     (this,cls);
  2661. }
  2662.  
  2663. /* method: somResetObj */
  2664. boolean   somResetObj()
  2665. {
  2666.    return SOM_ResolveD(this,HIPictureImagingObject,SOMObject,somResetObj)
  2667.     (this);
  2668. }
  2669.  
  2670. /* method: somPrintSelf */
  2671. SOMObject*   somPrintSelf()
  2672. {
  2673.    return SOM_ResolveD(this,HIPictureImagingObject,SOMObject,somPrintSelf)
  2674.     (this);
  2675. }
  2676.  
  2677. /* method: somDumpSelf */
  2678. void   somDumpSelf(long level)
  2679. {
  2680.    SOM_ResolveD(this,HIPictureImagingObject,SOMObject,somDumpSelf)
  2681.     (this,level);
  2682. }
  2683.  
  2684. /* method: somDumpSelfInt */
  2685. void   somDumpSelfInt(long level)
  2686. {
  2687.    SOM_ResolveD(this,HIPictureImagingObject,SOMObject,somDumpSelfInt)
  2688.     (this,level);
  2689. }
  2690.  
  2691. };   /* HIPictureImagingObject */
  2692.  
  2693.  
  2694.  
  2695. #endif       /* SOM_HIPictureImagingObject_xh */
  2696.  
  2697. #ifndef SOM_HITextImagingObject_xh
  2698. #define SOM_HITextImagingObject_xh
  2699.  
  2700. class HITextImagingObject;
  2701.  
  2702. #define HITextImagingObject_MajorVersion 0
  2703. #define HITextImagingObject_MinorVersion 0
  2704.  
  2705. /*
  2706.  * Passthru lines: File: "C.xh", "before"
  2707.  */
  2708. #include <Collections.h>
  2709. #include <Fonts.h>
  2710. #include <Quickdraw.h>
  2711. #include <TextEdit.h>
  2712. #include <TextObjects.h>
  2713. #include <Types.h>
  2714. #include <HIObjectTypes.h>
  2715. #include <HIImagingObjectTypes.h>
  2716.  
  2717. /* C++ SOM defs */
  2718. #include <somcls.xh>
  2719. #include <somcm.xh>
  2720.  
  2721. /* C++ parent defs */
  2722. #ifndef SOM_HIImagingObject_xh
  2723. #include <HIImagingObjects.xh>
  2724. #endif
  2725.  
  2726. #ifndef HITextImagingObject_API
  2727. #define HITextImagingObject_API
  2728. /*
  2729.  * -- The Class API
  2730.  */
  2731.  
  2732. /*
  2733.  * Start of user-defined types:
  2734.  */
  2735.  
  2736. /*
  2737.  * End of user-defined types.
  2738.  */
  2739.  
  2740. #ifdef OLDIBMSOMAPISUPPORT
  2741. #define HITextImagingObjectCClassData HITextImagingObjectClassData
  2742. #define HITextImagingObjectNewClass(major,minor) somNewVersionedClassReference(HITextImagingObject,major,minor)
  2743. #endif
  2744.  
  2745. /* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
  2746. #define HITextImagingObjectMetaClass SOMClass
  2747.  
  2748. #if PRAGMA_ALIGN_SUPPORTED
  2749. #  pragma options align=power
  2750. #endif
  2751.  
  2752. /* The API to the HITextImagingObject class object, and the methods it introduces. */
  2753. SOMEXTERN struct HITextImagingObjectClassDataStructure {
  2754. #ifdef OLDIBMSOMAPISUPPORT
  2755.     SOMClass            *classObject;    /* always zero, use somNewClassReference instead */
  2756. #else
  2757.     long zero;
  2758. #endif
  2759.     somStaticClassInfo *sci;
  2760.     somDToken        instanceDataToken;
  2761.     long reserved [3];
  2762.     somMToken SetText;
  2763.     somMToken GetText;
  2764.     somMToken SetStrike;
  2765.     somMToken GetStrike;
  2766.     somMToken TextImageMgr__reserved0;
  2767.     somMToken TextImageMgr__reserved1;
  2768. } SOMDLINK HITextImagingObjectClassData;
  2769.  
  2770. #if PRAGMA_ALIGN_SUPPORTED
  2771. #  pragma options align=reset
  2772. #endif
  2773.  
  2774. #if !defined(HITextImagingObject_Class_Source) && !defined(SOM_Module_hiimagingobjects_Source)
  2775. #if PRAGMA_IMPORT_SUPPORTED
  2776. #pragma import list HITextImagingObjectClassData
  2777. #endif
  2778. #endif
  2779.  
  2780.  
  2781. /*
  2782.  * -- Typedefs for HITextImagingObject Method Procedures
  2783.  */
  2784. SOMEXTERN {
  2785. typedef OSStatus   (* SOMLINK somTD_HITextImagingObject_SetText)(HITextImagingObject *somSelf, Environment *ev,
  2786.         HIImageRef imageRef,
  2787.         TextObject textObject);
  2788. typedef OSStatus   (* SOMLINK somTD_HITextImagingObject_GetText)(HITextImagingObject *somSelf, Environment *ev,
  2789.         ConstHIImageRef imageRef,
  2790.         TextObject* textObjectPtr);
  2791. typedef OSStatus   (* SOMLINK somTD_HITextImagingObject_SetStrike)(HITextImagingObject *somSelf, Environment *ev,
  2792.         HIImageRef imageRef,
  2793.         TextStrikeRef strike);
  2794. typedef OSStatus   (* SOMLINK somTD_HITextImagingObject_GetStrike)(HITextImagingObject *somSelf, Environment *ev,
  2795.         ConstHIImageRef imageRef,
  2796.         TextStrikeRef* strike);
  2797.  
  2798. /*
  2799.  * -- Typedefs for Inherited Methods
  2800.  */
  2801. typedef OSStatus   (* SOMLINK somTD_HITextImagingObject_NewImage)(HITextImagingObject *somSelf, Environment *ev,
  2802.         HIImageRef* imageRefPtr);
  2803. typedef OSStatus   (* SOMLINK somTD_HITextImagingObject_GetNewImage)(HITextImagingObject *somSelf, Environment *ev,
  2804.         AESubDesc* initializer,
  2805.         HIImageRef* imageRefPtr);
  2806. typedef HIImageRef   (* SOMLINK somTD_HITextImagingObject_CloneImage)(HITextImagingObject *somSelf, Environment *ev,
  2807.         HIImageRef imageRef);
  2808. typedef OSStatus   (* SOMLINK somTD_HITextImagingObject_ReleaseImage)(HITextImagingObject *somSelf, Environment *ev,
  2809.         HIImageRef imageRef);
  2810. typedef ItemCount   (* SOMLINK somTD_HITextImagingObject_GetImageOwnerCount)(HITextImagingObject *somSelf, Environment *ev,
  2811.         ConstHIImageRef imageRef);
  2812. typedef OSStatus   (* SOMLINK somTD_HITextImagingObject_InitFromAERecord)(HITextImagingObject *somSelf, Environment *ev,
  2813.         HIImageRef imageRef,
  2814.         AESubDesc* dataForBaseClass,
  2815.         AESubDesc* dataForClass,
  2816.         HIAERecordDataFormat dataFormat);
  2817. typedef OSStatus   (* SOMLINK somTD_HITextImagingObject_WriteToAERecord)(HITextImagingObject *somSelf, Environment *ev,
  2818.         ConstHIImageRef imageRef,
  2819.         AERecord* dataForSubclass,
  2820.         AERecord* dataForClass,
  2821.         HIAERecordDataFormat dataFormat);
  2822. typedef OSStatus   (* SOMLINK somTD_HITextImagingObject_MeasureImage)(HITextImagingObject *somSelf, Environment *ev,
  2823.         ConstHIImageRef imageRef,
  2824.         CGrafPtr port,
  2825.         UInt32* widthPtr,
  2826.         UInt32* heightPtr,
  2827.         HIImageOptions measureOptions);
  2828. typedef OSStatus   (* SOMLINK somTD_HITextImagingObject_DrawImage)(HITextImagingObject *somSelf, Environment *ev,
  2829.         ConstHIImageRef imageRef,
  2830.         CGrafPtr port,
  2831.         Rect* contentRect,
  2832.         Rect* frameRect,
  2833.         HIImageOptions drawOptions);
  2834. typedef OSStatus   (* SOMLINK somTD_HITextImagingObject_DisposeImage)(HITextImagingObject *somSelf, Environment *ev,
  2835.         HIImageRef imageRef);
  2836. typedef HIImagingObject*   (* SOMLINK somTD_HITextImagingObject_GetHIImagingObject)(Environment *ev,
  2837.         HIImageType imageType);
  2838. typedef HIImageType   (* SOMLINK somTD_HITextImagingObject_GetImageType)(Environment *ev,
  2839.         ConstHIImageRef imageRef);
  2840. typedef OSStatus   (* SOMLINK somTD_HITextImagingObject_GetNewImageFromResource)(Environment *ev,
  2841.         ResID objectInitializerResourceID,
  2842.         HIImageRef* imageRefPtr);
  2843. typedef void   (* SOMLINK somTD_HITextImagingObject_somInit)(HITextImagingObject *somSelf);
  2844. typedef void   (* SOMLINK somTD_HITextImagingObject_somUninit)(HITextImagingObject *somSelf);
  2845. typedef SOMObject*   (* SOMLINK somTD_HITextImagingObject_somDuplicateReference)(HITextImagingObject *somSelf);
  2846. typedef boolean   (* SOMLINK somTD_HITextImagingObject_somCompareReference)(HITextImagingObject *somSelf,
  2847.         SOMObject* anObject);
  2848. typedef SOMObject*   (* SOMLINK somTD_HITextImagingObject_somRelease)(HITextImagingObject *somSelf);
  2849. typedef void   (* SOMLINK somTD_HITextImagingObject_somFree)(HITextImagingObject *somSelf);
  2850. typedef boolean   (* SOMLINK somTD_HITextImagingObject_somCanDelete)(HITextImagingObject *somSelf);
  2851. typedef SOMClass*   (* SOMLINK somTD_HITextImagingObject_somGetClass)(HITextImagingObject *somSelf);
  2852. typedef corbastring   (* SOMLINK somTD_HITextImagingObject_somGetClassName)(HITextImagingObject *somSelf);
  2853. typedef long   (* SOMLINK somTD_HITextImagingObject_somGetSize)(HITextImagingObject *somSelf);
  2854. typedef boolean   (* SOMLINK somTD_HITextImagingObject_somIsA)(HITextImagingObject *somSelf,
  2855.         SOMClass* aClassObj);
  2856. typedef boolean   (* SOMLINK somTD_HITextImagingObject_somRespondsTo)(HITextImagingObject *somSelf,
  2857.         somId mId);
  2858. typedef boolean   (* SOMLINK somTD_HITextImagingObject_somIsInstanceOf)(HITextImagingObject *somSelf,
  2859.         SOMClass* aClassObj);
  2860. typedef boolean   (* SOMLINK somTD_HITextImagingObject_somDispatch)(HITextImagingObject *somSelf,
  2861.         somToken* retValue,
  2862.         somId methodId,
  2863.         va_list ap);
  2864. typedef boolean   (* SOMLINK somTD_HITextImagingObject_somClassDispatch)(HITextImagingObject *somSelf,
  2865.         SOMClass* clsObj,
  2866.         somToken* retValue,
  2867.         somId methodId,
  2868.         va_list ap);
  2869. typedef boolean   (* SOMLINK somTD_HITextImagingObject_somCastObj)(HITextImagingObject *somSelf,
  2870.         SOMClass* cls);
  2871. typedef boolean   (* SOMLINK somTD_HITextImagingObject_somResetObj)(HITextImagingObject *somSelf);
  2872. typedef SOMObject*   (* SOMLINK somTD_HITextImagingObject_somPrintSelf)(HITextImagingObject *somSelf);
  2873. typedef void   (* SOMLINK somTD_HITextImagingObject_somDumpSelf)(HITextImagingObject *somSelf,
  2874.         long level);
  2875. typedef void   (* SOMLINK somTD_HITextImagingObject_somDumpSelfInt)(HITextImagingObject *somSelf,
  2876.         long level);
  2877. }
  2878.  
  2879. #endif /* HITextImagingObject_API */
  2880.  
  2881.  
  2882. /*
  2883.  * -- This emitter treats Method Tokens as Thunks by default.
  2884.  * -- Use the sc modifier "nothunks" to change this default
  2885.  */
  2886. #undef somresolve_
  2887. #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
  2888.  
  2889. /*
  2890.  * -- The C++ Wrapper Class for HITextImagingObject
  2891.  */
  2892. class HITextImagingObject : public HIImagingObject
  2893. {
  2894. public:
  2895.  
  2896. // HITextImagingObject::new registers use of the class object, and then uses somNew
  2897. // to allocate memory and load the object method table pointer. 
  2898. void *operator new(size_t size)
  2899. {
  2900.     SOM_IgnoreWarning(size);
  2901.     // Allocate memory using the default allocator for HITextImagingObject, and
  2902.     // clear mem & set method table pointer, call basic initialization
  2903.     return (void*) somNewObject(HITextImagingObject);
  2904. }
  2905.  
  2906. // HITextImagingObject::delete uses the default deallocator for the object's class.
  2907. void operator delete(void * obj)
  2908. {
  2909.     if (obj) {
  2910.         SOM_Resolve(obj,SOMObject,somFree)
  2911.            ( (SOMObject*) obj );
  2912.     }
  2913. }
  2914.  
  2915. /* method: SetText */
  2916. OSStatus   SetText(Environment *ev,
  2917.         HIImageRef imageRef,
  2918.         TextObject textObject)
  2919. {
  2920.    return SOM_ResolveD(this,HITextImagingObject,HITextImagingObject,SetText)
  2921.     (this,ev,imageRef,textObject);
  2922. }
  2923.  
  2924. /* method: GetText */
  2925. OSStatus   GetText(Environment *ev,
  2926.         ConstHIImageRef imageRef,
  2927.         TextObject* textObjectPtr)
  2928. {
  2929.    return SOM_ResolveD(this,HITextImagingObject,HITextImagingObject,GetText)
  2930.     (this,ev,imageRef,textObjectPtr);
  2931. }
  2932.  
  2933. /* method: SetStrike */
  2934. OSStatus   SetStrike(Environment *ev,
  2935.         HIImageRef imageRef,
  2936.         TextStrikeRef strike)
  2937. {
  2938.    return SOM_ResolveD(this,HITextImagingObject,HITextImagingObject,SetStrike)
  2939.     (this,ev,imageRef,strike);
  2940. }
  2941.  
  2942. /* method: GetStrike */
  2943. OSStatus   GetStrike(Environment *ev,
  2944.         ConstHIImageRef imageRef,
  2945.         TextStrikeRef* strike)
  2946. {
  2947.    return SOM_ResolveD(this,HITextImagingObject,HITextImagingObject,GetStrike)
  2948.     (this,ev,imageRef,strike);
  2949. }
  2950.  
  2951.  
  2952. /*
  2953.  * -- Inherited methods
  2954.  */
  2955. /* method: NewImage */
  2956. OSStatus   NewImage(Environment *ev,
  2957.         HIImageRef* imageRefPtr)
  2958. {
  2959.    return SOM_ResolveD(this,HITextImagingObject,HIImagingObject,NewImage)
  2960.     (this,ev,imageRefPtr);
  2961. }
  2962.  
  2963. /* method: GetNewImage */
  2964. OSStatus   GetNewImage(Environment *ev,
  2965.         AESubDesc* initializer,
  2966.         HIImageRef* imageRefPtr)
  2967. {
  2968.    return SOM_ResolveD(this,HITextImagingObject,HIImagingObject,GetNewImage)
  2969.     (this,ev,initializer,imageRefPtr);
  2970. }
  2971.  
  2972. /* method: CloneImage */
  2973. HIImageRef   CloneImage(Environment *ev,
  2974.         HIImageRef imageRef)
  2975. {
  2976.    return SOM_ResolveD(this,HITextImagingObject,HIImagingObject,CloneImage)
  2977.     (this,ev,imageRef);
  2978. }
  2979.  
  2980. /* method: ReleaseImage */
  2981. OSStatus   ReleaseImage(Environment *ev,
  2982.         HIImageRef imageRef)
  2983. {
  2984.    return SOM_ResolveD(this,HITextImagingObject,HIImagingObject,ReleaseImage)
  2985.     (this,ev,imageRef);
  2986. }
  2987.  
  2988. /* method: GetImageOwnerCount */
  2989. ItemCount   GetImageOwnerCount(Environment *ev,
  2990.         ConstHIImageRef imageRef)
  2991. {
  2992.    return SOM_ResolveD(this,HITextImagingObject,HIImagingObject,GetImageOwnerCount)
  2993.     (this,ev,imageRef);
  2994. }
  2995.  
  2996. /* method: InitFromAERecord */
  2997. OSStatus   InitFromAERecord(Environment *ev,
  2998.         HIImageRef imageRef,
  2999.         AESubDesc* dataForBaseClass,
  3000.         AESubDesc* dataForClass,
  3001.         HIAERecordDataFormat dataFormat)
  3002. {
  3003.    return SOM_ResolveD(this,HITextImagingObject,HIImagingObject,InitFromAERecord)
  3004.     (this,ev,imageRef,dataForBaseClass,dataForClass,dataFormat);
  3005. }
  3006.  
  3007. /* method: WriteToAERecord */
  3008. OSStatus   WriteToAERecord(Environment *ev,
  3009.         ConstHIImageRef imageRef,
  3010.         AERecord* dataForSubclass,
  3011.         AERecord* dataForClass,
  3012.         HIAERecordDataFormat dataFormat)
  3013. {
  3014.    return SOM_ResolveD(this,HITextImagingObject,HIImagingObject,WriteToAERecord)
  3015.     (this,ev,imageRef,dataForSubclass,dataForClass,dataFormat);
  3016. }
  3017.  
  3018. /* method: MeasureImage */
  3019. OSStatus   MeasureImage(Environment *ev,
  3020.         ConstHIImageRef imageRef,
  3021.         CGrafPtr port,
  3022.         UInt32* widthPtr,
  3023.         UInt32* heightPtr,
  3024.         HIImageOptions measureOptions)
  3025. {
  3026.    return SOM_ResolveD(this,HITextImagingObject,HIImagingObject,MeasureImage)
  3027.     (this,ev,imageRef,port,widthPtr,heightPtr,measureOptions);
  3028. }
  3029.  
  3030. /* method: DrawImage */
  3031. OSStatus   DrawImage(Environment *ev,
  3032.         ConstHIImageRef imageRef,
  3033.         CGrafPtr port,
  3034.         Rect* contentRect,
  3035.         Rect* frameRect,
  3036.         HIImageOptions drawOptions)
  3037. {
  3038.    return SOM_ResolveD(this,HITextImagingObject,HIImagingObject,DrawImage)
  3039.     (this,ev,imageRef,port,contentRect,frameRect,drawOptions);
  3040. }
  3041.  
  3042. /* method: DisposeImage */
  3043. OSStatus   DisposeImage(Environment *ev,
  3044.         HIImageRef imageRef)
  3045. {
  3046.    return SOM_ResolveD(this,HITextImagingObject,HIImagingObject,DisposeImage)
  3047.     (this,ev,imageRef);
  3048. }
  3049.  
  3050. /* noself procedure: GetHIImagingObject */
  3051. static HIImagingObject*   GetHIImagingObject(Environment *ev,
  3052.         HIImageType imageType)
  3053. {
  3054. return ((somTD_HITextImagingObject_GetHIImagingObject)HIImagingObjectClassData.GetHIImagingObject)
  3055.     (ev,imageType);
  3056. }
  3057.  
  3058. /* noself procedure: GetImageType */
  3059. static HIImageType   GetImageType(Environment *ev,
  3060.         ConstHIImageRef imageRef)
  3061. {
  3062. return ((somTD_HITextImagingObject_GetImageType)HIImagingObjectClassData.GetImageType)
  3063.     (ev,imageRef);
  3064. }
  3065.  
  3066. /* noself procedure: GetNewImageFromResource */
  3067. static OSStatus   GetNewImageFromResource(Environment *ev,
  3068.         ResID objectInitializerResourceID,
  3069.         HIImageRef* imageRefPtr)
  3070. {
  3071. return ((somTD_HITextImagingObject_GetNewImageFromResource)HIImagingObjectClassData.GetNewImageFromResource)
  3072.     (ev,objectInitializerResourceID,imageRefPtr);
  3073. }
  3074.  
  3075. /* method: somInit */
  3076. void   somInit()
  3077. {
  3078.    SOM_ResolveD(this,HITextImagingObject,SOMObject,somInit)
  3079.     (this);
  3080. }
  3081.  
  3082. /* method: somUninit */
  3083. void   somUninit()
  3084. {
  3085.    SOM_ResolveD(this,HITextImagingObject,SOMObject,somUninit)
  3086.     (this);
  3087. }
  3088.  
  3089. /* method: somDuplicateReference */
  3090. SOMObject*   somDuplicateReference()
  3091. {
  3092.    return SOM_ResolveD(this,HITextImagingObject,SOMObject,somDuplicateReference)
  3093.     (this);
  3094. }
  3095.  
  3096. /* method: somCompareReference */
  3097. boolean   somCompareReference(SOMObject* anObject)
  3098. {
  3099.    return SOM_ResolveD(this,HITextImagingObject,SOMObject,somCompareReference)
  3100.     (this,anObject);
  3101. }
  3102.  
  3103. /* method: somRelease */
  3104. SOMObject*   somRelease()
  3105. {
  3106.    return SOM_ResolveD(this,HITextImagingObject,SOMObject,somRelease)
  3107.     (this);
  3108. }
  3109.  
  3110. /* method: somFree */
  3111. void   somFree()
  3112. {
  3113.    SOM_ResolveD(this,HITextImagingObject,SOMObject,somFree)
  3114.     (this);
  3115. }
  3116.  
  3117. /* method: somCanDelete */
  3118. boolean   somCanDelete()
  3119. {
  3120.    return SOM_ResolveD(this,HITextImagingObject,SOMObject,somCanDelete)
  3121.     (this);
  3122. }
  3123.  
  3124. /* method: somGetClass */
  3125. SOMClass*   somGetClass()
  3126. {
  3127.    return SOM_ResolveD(this,HITextImagingObject,SOMObject,somGetClass)
  3128.     (this);
  3129. }
  3130.  
  3131. /* method: somGetClassName */
  3132. corbastring   somGetClassName()
  3133. {
  3134.    return SOM_ResolveD(this,HITextImagingObject,SOMObject,somGetClassName)
  3135.     (this);
  3136. }
  3137.  
  3138. /* method: somGetSize */
  3139. long   somGetSize()
  3140. {
  3141.    return SOM_ResolveD(this,HITextImagingObject,SOMObject,somGetSize)
  3142.     (this);
  3143. }
  3144.  
  3145. /* method: somIsA */
  3146. boolean   somIsA(SOMClass* aClassObj)
  3147. {
  3148.    return SOM_ResolveD(this,HITextImagingObject,SOMObject,somIsA)
  3149.     (this,aClassObj);
  3150. }
  3151.  
  3152. /* method: somRespondsTo */
  3153. boolean   somRespondsTo(somId mId)
  3154. {
  3155.    return SOM_ResolveD(this,HITextImagingObject,SOMObject,somRespondsTo)
  3156.     (this,mId);
  3157. }
  3158.  
  3159. /* method: somIsInstanceOf */
  3160. boolean   somIsInstanceOf(SOMClass* aClassObj)
  3161. {
  3162.    return SOM_ResolveD(this,HITextImagingObject,SOMObject,somIsInstanceOf)
  3163.     (this,aClassObj);
  3164. }
  3165.  
  3166. /* va_list method: somDispatch */
  3167. /* the va_list invocation form */
  3168. boolean   HITextImagingObject_somDispatch(somToken* retValue,
  3169.         somId methodId,
  3170.         va_list ap)
  3171. {
  3172.    return SOM_ResolveD(this,HITextImagingObject,SOMObject,somDispatch)
  3173.     (this,retValue,methodId,ap);
  3174. }
  3175.  
  3176. /* the varargs invocation form */
  3177. boolean   somDispatch(somToken* retValue,
  3178.         somId methodId,
  3179.         ...)
  3180. {
  3181.    va_list ap;
  3182.    va_start(ap, methodId);
  3183.       boolean __somResult = 
  3184.       (boolean) SOM_ResolveD(this,HITextImagingObject,SOMObject,somDispatch)
  3185.     (this,retValue,methodId,ap);
  3186.    va_end(ap);
  3187.    return __somResult;
  3188. }
  3189.  
  3190. /* va_list method: somClassDispatch */
  3191. /* the va_list invocation form */
  3192. boolean   HITextImagingObject_somClassDispatch(SOMClass* clsObj,
  3193.         somToken* retValue,
  3194.         somId methodId,
  3195.         va_list ap)
  3196. {
  3197.    return SOM_ResolveD(this,HITextImagingObject,SOMObject,somClassDispatch)
  3198.     (this,clsObj,retValue,methodId,ap);
  3199. }
  3200.  
  3201. /* the varargs invocation form */
  3202. boolean   somClassDispatch(SOMClass* clsObj,
  3203.         somToken* retValue,
  3204.         somId methodId,
  3205.         ...)
  3206. {
  3207.    va_list ap;
  3208.    va_start(ap, methodId);
  3209.       boolean __somResult = 
  3210.       (boolean) SOM_ResolveD(this,HITextImagingObject,SOMObject,somClassDispatch)
  3211.     (this,clsObj,retValue,methodId,ap);
  3212.    va_end(ap);
  3213.    return __somResult;
  3214. }
  3215.  
  3216. /* method: somCastObj */
  3217. boolean   somCastObj(SOMClass* cls)
  3218. {
  3219.    return SOM_ResolveD(this,HITextImagingObject,SOMObject,somCastObj)
  3220.     (this,cls);
  3221. }
  3222.  
  3223. /* method: somResetObj */
  3224. boolean   somResetObj()
  3225. {
  3226.    return SOM_ResolveD(this,HITextImagingObject,SOMObject,somResetObj)
  3227.     (this);
  3228. }
  3229.  
  3230. /* method: somPrintSelf */
  3231. SOMObject*   somPrintSelf()
  3232. {
  3233.    return SOM_ResolveD(this,HITextImagingObject,SOMObject,somPrintSelf)
  3234.     (this);
  3235. }
  3236.  
  3237. /* method: somDumpSelf */
  3238. void   somDumpSelf(long level)
  3239. {
  3240.    SOM_ResolveD(this,HITextImagingObject,SOMObject,somDumpSelf)
  3241.     (this,level);
  3242. }
  3243.  
  3244. /* method: somDumpSelfInt */
  3245. void   somDumpSelfInt(long level)
  3246. {
  3247.    SOM_ResolveD(this,HITextImagingObject,SOMObject,somDumpSelfInt)
  3248.     (this,level);
  3249. }
  3250.  
  3251. };   /* HITextImagingObject */
  3252.  
  3253.  
  3254.  
  3255. #endif       /* SOM_HITextImagingObject_xh */
  3256.